]> Creatis software - crea.git/commitdiff
CHANGE SUBDIRS TO ADDSUBDIRECTORIES
authorJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 16 Aug 2010 19:15:21 +0000 (19:15 +0000)
committerJuan Prieto <Juan.Prieto@creatis.insa-lyon.fr>
Mon, 16 Aug 2010 19:15:21 +0000 (19:15 +0000)
CMakeLists.txt
appli/CMakeLists.txt

index ab5e89633c06b9b89600a3cd6289edd46dd34542..bd4e1eaf8bde3a539bf2c4dfb60a8dbd7ab23d9e 100644 (file)
@@ -61,9 +61,9 @@ OPTION ( CREA_COMPILE_WARNING_MESSAGES "Compile CREA warning messages ?" ON)
 
 INCLUDE(${CREA_CMAKE_DIR}/CREAResolveOptions.cmake)
 
-SUBDIRS(cmake)
-SUBDIRS(src)
-SUBDIRS(appli)
+ADD_SUBDIRECTORY(cmake)
+ADD_SUBDIRECTORY(src)
+ADD_SUBDIRECTORY(appli)
 
 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
 INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/src)
@@ -71,9 +71,9 @@ INCLUDE_DIRECTORIES(${PROJECT_BINARY_DIR}/src)
 #-----------------------------------------------------------------------------
 OPTION( BUILD_SAMPLES "Build samples ?" OFF)
 IF(BUILD_SAMPLES)
-  SUBDIRS(samples)
+  ADD_SUBDIRECTORY(samples)
 ENDIF(BUILD_SAMPLES)
 #-----------------------------------------------------------------------------
 
-SUBDIRS(install)
+ADD_SUBDIRECTORY(install)
 
index 09e694808db1c0ff245b1a6cd61c8043949d489e..42da0c800a270c9926bc58388de2385ee9eecbb9 100644 (file)
@@ -1,11 +1,11 @@
 
 INSTALL( FILES creatis_AppGeneralPath.bat DESTINATION bin )
 
-IF(${CREA_BUILD_WX})
-  SUBDIRS(creaNewProject)
-ENDIF(${CREA_BUILD_WX})
+IF(CREA_BUILD_WX)
+  add_subdirectory(creaNewProject)
+ENDIF(CREA_BUILD_WX)
 
 IF(WIN32)
-  SUBDIRS(creaSed)
+  add_subdirectory(creaSed)
 ENDIF(WIN32)