From bbbf404340816b13bbd5e9fc3cb1f9e89f411c09 Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Mon, 31 Jan 2022 08:51:50 -0500 Subject: [PATCH] [cmake-example] Update cmake project example + Rename `cmake` -> `cmake-example` --- cpp/CMakeLists.txt | 2 +- cpp/{cmake => cmake-example}/CMakeLists.txt | 2 +- cpp/{cmake => cmake-example}/apps/CMakeLists.txt | 6 +++--- cpp/{cmake => cmake-example}/apps/say-hello.cpp | 12 ++++++------ cpp/{cmake => cmake-example}/include/lib-klips.hpp | 12 ++++++------ cpp/{cmake => cmake-example}/src/CMakeLists.txt | 2 +- cpp/{cmake => cmake-example}/src/lib-klips.cpp | 12 ++++++------ 7 files changed, 24 insertions(+), 24 deletions(-) rename cpp/{cmake => cmake-example}/CMakeLists.txt (93%) rename cpp/{cmake => cmake-example}/apps/CMakeLists.txt (81%) rename cpp/{cmake => cmake-example}/apps/say-hello.cpp (55%) rename cpp/{cmake => cmake-example}/include/lib-klips.hpp (53%) rename cpp/{cmake => cmake-example}/src/CMakeLists.txt (90%) rename cpp/{cmake => cmake-example}/src/lib-klips.cpp (54%) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index ca273f9..ed2f647 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -20,7 +20,7 @@ project( set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) add_subdirectory(algorithms) -add_subdirectory(cmake) +add_subdirectory(cmake-example) add_subdirectory(cryptography) add_subdirectory(datastructs) add_subdirectory(graphics) diff --git a/cpp/cmake/CMakeLists.txt b/cpp/cmake-example/CMakeLists.txt similarity index 93% rename from cpp/cmake/CMakeLists.txt rename to cpp/cmake-example/CMakeLists.txt index 4030215..0878f76 100644 --- a/cpp/cmake/CMakeLists.txt +++ b/cpp/cmake-example/CMakeLists.txt @@ -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: A template project for getting started working with CMake ## ## ## ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## diff --git a/cpp/cmake/apps/CMakeLists.txt b/cpp/cmake-example/apps/CMakeLists.txt similarity index 81% rename from cpp/cmake/apps/CMakeLists.txt rename to cpp/cmake-example/apps/CMakeLists.txt index ad7c183..be67004 100644 --- a/cpp/cmake/apps/CMakeLists.txt +++ b/cpp/cmake-example/apps/CMakeLists.txt @@ -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 ## ## ## ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## ############################################################################## @@ -10,8 +10,8 @@ set(APP_SRC say-hello.cpp) # Add our executable, naming it and linking it to our source code -add_executable(execute-hello ${APP_SRC}) +add_executable(say-hello ${APP_SRC}) # Link to our custom library, defined in c-cmake/src/ -target_link_libraries(execute-hello lib-klips) +target_link_libraries(say-hello lib-klips) diff --git a/cpp/cmake/apps/say-hello.cpp b/cpp/cmake-example/apps/say-hello.cpp similarity index 55% rename from cpp/cmake/apps/say-hello.cpp rename to cpp/cmake-example/apps/say-hello.cpp index 345b160..9be5ac2 100644 --- a/cpp/cmake/apps/say-hello.cpp +++ b/cpp/cmake-example/apps/say-hello.cpp @@ -1,9 +1,9 @@ -/*############################################################################# -## Author: Shaun Reed ## -## Legal: All Content (c) 2019 Shaun Reed, all rights reserved ## -## ## -## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## -############################################################################## +/*############################################################################## +## Author: Shaun Reed ## +## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ## +## ## +## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## +################################################################################ */ #include diff --git a/cpp/cmake/include/lib-klips.hpp b/cpp/cmake-example/include/lib-klips.hpp similarity index 53% rename from cpp/cmake/include/lib-klips.hpp rename to cpp/cmake-example/include/lib-klips.hpp index ee66f67..baff597 100644 --- a/cpp/cmake/include/lib-klips.hpp +++ b/cpp/cmake-example/include/lib-klips.hpp @@ -1,9 +1,9 @@ -/*############################################################################# -## Author: Shaun Reed ## -## Legal: All Content (c) 2019 Shaun Reed, all rights reserved ## -## ## -## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## -############################################################################## +/*############################################################################## +## Author: Shaun Reed ## +## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ## +## ## +## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## +################################################################################ */ /** diff --git a/cpp/cmake/src/CMakeLists.txt b/cpp/cmake-example/src/CMakeLists.txt similarity index 90% rename from cpp/cmake/src/CMakeLists.txt rename to cpp/cmake-example/src/CMakeLists.txt index 4871808..b8a1137 100644 --- a/cpp/cmake/src/CMakeLists.txt +++ b/cpp/cmake-example/src/CMakeLists.txt @@ -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 ## ## ## ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## ############################################################################## diff --git a/cpp/cmake/src/lib-klips.cpp b/cpp/cmake-example/src/lib-klips.cpp similarity index 54% rename from cpp/cmake/src/lib-klips.cpp rename to cpp/cmake-example/src/lib-klips.cpp index 9bdb1c7..8c18fbb 100644 --- a/cpp/cmake/src/lib-klips.cpp +++ b/cpp/cmake-example/src/lib-klips.cpp @@ -1,9 +1,9 @@ -/*############################################################################# -## Author: Shaun Reed ## -## Legal: All Content (c) 2019 Shaun Reed, all rights reserved ## -## ## -## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## -############################################################################## +/*############################################################################## +## Author: Shaun Reed ## +## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ## +## ## +## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## +################################################################################ */ #include