]> granicus.if.org Git - multimarkdown/commitdiff
ADDED: Boilerplate to use cmake subdirectories
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 25 Aug 2016 00:06:23 +0000 (20:06 -0400)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Thu, 25 Aug 2016 00:06:23 +0000 (20:06 -0400)
CMakeLists.txt

index b8e798c9f45df1f7c1a3afb5351ca68c04d33909..48b13b47c348d7c1067d427ec781219d9e4ef4a7 100644 (file)
@@ -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