Clean up CMakeLists in all C++ examples
+ Rename output executables to match directory structure + Remove libraries for small examples + Supress -Wreturn-type warnings for singleton that is intentionally not copyable
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(HeapSort LANGUAGES CXX)
|
||||
|
||||
add_executable(heap-sort "heap-sort.cpp")
|
||||
add_executable(
|
||||
algo-sort-heap heap-sort.cpp
|
||||
lib-heap.cpp lib-heap.hpp
|
||||
)
|
||||
|
||||
add_library(lib-heap "lib-heap.cpp")
|
||||
target_link_libraries(heap-sort lib-heap)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*#############################################################################
|
||||
## Author: Shaun Reed ##
|
||||
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
|
||||
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
||||
## About: An example implementation of heap sort using a custom library ##
|
||||
## ##
|
||||
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*#############################################################################
|
||||
## Author: Shaun Reed ##
|
||||
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
|
||||
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
||||
## About: An example implementation of heap sort using a custom library ##
|
||||
## ##
|
||||
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*#############################################################################
|
||||
## Author: Shaun Reed ##
|
||||
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
|
||||
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
|
||||
## About: An example implementation of heap sort using a custom library ##
|
||||
## ##
|
||||
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
|
||||
|
||||
Reference in New Issue
Block a user