]> Creatis software - creaImageIO.git/commitdiff
change SUBDIRS (deprecate functionality) to ADD_SUBDIRECTORY
authorFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 10 Nov 2010 15:22:57 +0000 (15:22 +0000)
committerFrederic Cervenansky <Frederic.Cervenansky@creatis.insa-lyon.fr>
Wed, 10 Nov 2010 15:22:57 +0000 (15:22 +0000)
CMakeLists.txt
appli/CMakeLists.txt
src/CMakeLists.txt

index 951ea8cfe9267632e1be16e0a1d31b9a840890af..45c9c982b290035883ce4d6df65933a700290b9a 100644 (file)
@@ -87,7 +87,7 @@ SET(LIBNAME creaImageIO)
     ${PROJECT_BINARY_DIR}
     ${PROJECT_SOURCE_DIR}/src
     )
-SUBDIRS(src)
+ADD_SUBDIRECTORY(src)
 
 
 OPTION(BUILD_CREA_BRUKER "Build creaIRM with creaBruker?" ON)
@@ -108,17 +108,17 @@ IF (BUILD_CREA_PACS)
 ENDIF(BUILD_CREA_PACS)
 
 #
-SUBDIRS(appli)
-SUBDIRS(bbtk)
-SUBDIRS(tests)
+ADD_SUBDIRECTORY(appli)
+ADD_SUBDIRECTORY(bbtk)
+ADD_SUBDIRECTORY(tests)
 
 IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 4)
-       SUBDIRS(win32)
+       ADD_SUBDIRECTORY(win32)
 endif()
 IF(MSVC AND CMAKE_SIZEOF_VOID_P MATCHES 8)
-       SUBDIRS(win64)
+       ADD_SUBDIRECTORY(win64)
 endif()
 
-SUBDIRS(install)
+ADD_SUBDIRECTORY(install)
 
 ENABLE_TESTING()
index d10f989c6d5e5b1a4d67064bced51cb57ab1b0f3..289e7a2eb4ff829e3e778a0e5eef8dff624e6b1c 100644 (file)
@@ -1,24 +1,24 @@
 IF(!USE_INSTALL_APP)
-  SUBDIRS(gimmick)
-   SUBDIRS(TestGimmickReaderDialog)
+  ADD_SUBDIRECTORY(gimmick)
+   ADD_SUBDIRECTORY(TestGimmickReaderDialog)
  ENDIF(!USE_INSTALL_APP) 
   
   if(USE_WXWIDGETS)
        IF(!USE_INSTALL_APP)
-               SUBDIRS(wxGimmick)
+               ADD_SUBDIRECTORY(wxGimmick)
        ENDIF(!USE_INSTALL_APP) 
-       SUBDIRS(TestWxGimmickReaderDialog)
-       SUBDIRS(TestWxSimpleView)
+       ADD_SUBDIRECTORY(TestWxGimmickReaderDialog)
+       ADD_SUBDIRECTORY(TestWxSimpleView)
   ENDIF(USE_WXWIDGETS)
   
   IF(USE_QT4)
-  SUBDIRS(TestQtGimmick)
+  ADD_SUBDIRECTORY(TestQtGimmick)
   ENDIF(USE_QT4)
   
 
-  #SUBDIRS(TestWxGimmickReaderDialogJava)
+  #ADD_SUBDIRECTORY(TestWxGimmickReaderDialogJava)
 #LSE (BUILD_V2)
- # SUBDIRS(TestWxGimmickDialog)
+ # ADD_SUBDIRECTORY(TestWxGimmickDialog)
 #ENDIF (BUILD_V2)
 
 
index fdc5e1ec5817a3c74e268a9311c94bc26480fcbc..064b4efd364d0fc16283986250d983b7f8a38055 100644 (file)
@@ -323,7 +323,7 @@ CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR})
 
 OPTION( BUILD_DOXYGEN_DOC "Build doxygen doc ?" OFF)
 IF(BUILD_DOXYGEN_DOC)
-  SUBDIRS(doxygen)
+  ADD_SUBDIRECTORY(doxygen)
 ENDIF(BUILD_DOXYGEN_DOC)
 
 INCLUDE_DIRECTORIES(