aboutsummaryrefslogtreecommitdiffstats
path: root/config/MasterIDE-CMakeLists.txt
diff options
context:
space:
mode:
authorAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-03-29 18:00:06 +0200
committerAngelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>2017-03-30 18:58:33 +0200
commit3137acdd5a45285dab9903f9d41560c63eca8523 (patch)
tree38bd8525a9e214d848a73fc40e81ddb182cf91b6 /config/MasterIDE-CMakeLists.txt
parent9b30fc10fb1cbebe651e5a107e8ca5b24de54675 (diff)
first commit
Change-Id: I8412b8e7d966c2fbc508b537fd9a9bbcfc628ca8 Signed-off-by: Angelo Mantellini (manangel) <angelo.mantellini@irt-systemx.fr>
Diffstat (limited to 'config/MasterIDE-CMakeLists.txt')
-rw-r--r--config/MasterIDE-CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/config/MasterIDE-CMakeLists.txt b/config/MasterIDE-CMakeLists.txt
new file mode 100644
index 00000000..86df8a45
--- /dev/null
+++ b/config/MasterIDE-CMakeLists.txt
@@ -0,0 +1,29 @@
+# This is a master CMakeLists.txt file for IDEs. If you are viewing this as
+# CMakeLists.txt in the source directory IT IS A COPY and SHOULD NOT BE EDITED -
+# edit the MasterIDE-CMakeLists.txt in CCNx_Distillery/config instead.
+#
+cmake_minimum_required(VERSION 3.2)
+project (master)
+
+message("--- Collecting all sub-projects ---")
+
+macro(Subdirs result parent)
+ file(GLOB children LIST_DIRECTORIES true RELATIVE ${parent} "[^.]*")
+ set(dirlist "")
+ foreach(child ${children})
+ if(IS_DIRECTORY ${parent}/${child})
+ if(EXISTS ${parent}/${child}/CMakeLists.txt)
+ list(APPEND dirlist ${child})
+ endif()
+ endif()
+ endforeach()
+ set(${result} ${dirlist})
+endmacro()
+
+Subdirs(modules ${CMAKE_SOURCE_DIR})
+
+foreach(module ${modules})
+ message("module: ${module}")
+ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/${module}/cmake/Modules")
+ add_subdirectory(${module})
+endforeach()