[Jderobot-admin] jderobot-r991 - trunk/src/stable/components

lr.morales en jderobot.org lr.morales en jderobot.org
Mie Sep 25 16:20:51 CEST 2013


Author: lr.morales
Date: 2013-09-25 16:19:51 +0200 (Wed, 25 Sep 2013)
New Revision: 991

Modified:
   trunk/src/stable/components/CMakeLists.txt
Log:
#20 Adds component-selectable build feature to cmake



Modified: trunk/src/stable/components/CMakeLists.txt
===================================================================
--- trunk/src/stable/components/CMakeLists.txt	2013-09-25 13:26:59 UTC (rev 990)
+++ trunk/src/stable/components/CMakeLists.txt	2013-09-25 14:19:51 UTC (rev 991)
@@ -1,6 +1,14 @@
 list_subdirectories( LIST_COMPONENTS ${CMAKE_CURRENT_SOURCE_DIR} 1)
 
+IF(NOT DEFINED build-default)
+	SET(build-default ON)
+ENDIF(NOT DEFINED build-default)
+
 FOREACH (component ${LIST_COMPONENTS})
-        ADD_SUBDIRECTORY (${component})
+	SET(build_${component} ${build-default} CACHE BOOL "Build component ${component}")
+	IF(build_${component})
+		MESSAGE(STATUS "Processing component ${component}")
+	        ADD_SUBDIRECTORY (${component})
+	ENDIF(build_${component})
 ENDFOREACH()
 



More information about the Jderobot-admin mailing list