From 2038f6b331d2d4bac2cd8cae77805f75ed944722 Mon Sep 17 00:00:00 2001 From: "Fletcher T. Penney" Date: Wed, 24 Aug 2016 20:06:23 -0400 Subject: [PATCH] ADDED: Boilerplate to use cmake subdirectories --- CMakeLists.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b8e798c..48b13b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,17 +18,28 @@ set (My_Project_Version "${My_Project_Version_Major}.${My_Project_Version_Minor} set (My_Project_Copyright_Date "2015") set (My_Project_Copyright "Copyright © ${My_Project_Copyright_Date} ${My_Project_Author}.") +string(TOUPPER ${My_Project_Title} My_Project_Title_Caps ) +string(REGEX REPLACE " " "_" My_Project_Title_Caps ${My_Project_Title_Caps} ) + project (${My_Project_Title}) +# ========================= +# Build Submodules (if any) +# ========================= + +# add_subdirectory(submodules/foo) + + +# ================= +# Configure Project +# ================= + # Search for included files here include_directories( ${PROJECT_SOURCE_DIR}/src ) include_directories( ${PROJECT_SOURCE_DIR}/test ) include_directories(${PROJECT_BINARY_DIR}) -string(TOUPPER ${My_Project_Title} My_Project_Title_Caps ) -string(REGEX REPLACE " " "_" My_Project_Title_Caps ${My_Project_Title_Caps} ) - # ================= # Macro Definitions -- 2.40.0