From ef8ec8b5ac212509438a31e043d4a7ed0dcee432 Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Fri, 3 Dec 2010 15:56:48 +0000 Subject: [PATCH] Replace deprecated SUBDIRS by ADD_SUBDIRECTORY --- CMakeLists.txt | 15 +++++++++------ appli/CMakeLists.txt | 8 ++++---- doc/CMakeLists.txt | 6 +++--- lib/CMakeLists.txt | 4 ++-- lib/src1/CMakeLists.txt | 2 +- 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f42bb5..b5f2e68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,9 +57,12 @@ CREA_PREVENT_IN_SOURCE_BUILD() # if you need to LINK against crea # (and not only use its macros) SET(USE_CREA ON) -OPTION(USE_GDCM "Use GDCM" ON) +# +# ----------------- manual setting GDCM/GDCM2 JPR +# +OPTION(USE_GDCM "Use GDCM" OFF) SET(USE_GDCM_VTK ON) -OPTION(USE_GDCM2 "Use gdcm 2.0.14 at least" OFF) +OPTION(USE_GDCM2 "Use gdcm 2.0.14 at least" ON) # No interface for the moment, don't allow to add useless libraries SET(USE_WXWIDGETS OFF CACHE BOOL "Use wxWidgets" FORCE) SET(USE_KWWIDGETS OFF) @@ -121,9 +124,9 @@ SET(BBTK_DOC_BUILD_PATH #================================== # Subdirs -SUBDIRS(lib) -SUBDIRS(appli) -SUBDIRS(doc) -SUBDIRS(install) +ADD_SUBDIRECTORY(lib) +ADD_SUBDIRECTORY(appli) +ADD_SUBDIRECTORY(doc) +ADD_SUBDIRECTORY(install) #================================== diff --git a/appli/CMakeLists.txt b/appli/CMakeLists.txt index da8303b..31c6a7c 100644 --- a/appli/CMakeLists.txt +++ b/appli/CMakeLists.txt @@ -1,8 +1,8 @@ -# Add a SUBDIRS command for each one of your applications -# SUBDIRS(MyApp1) -# SUBDIRS(MyApp2) +# Add a ADD_SUBDIRECTORY command for each one of your applications +# ADD_SUBDIRECTORY(MyApp1) +# ADD_SUBDIRECTORY(MyApp2) if(USE_GDCM) -SUBDIRS( +ADD_SUBDIRECTORY( # ==> mettez ici la liste des directories qui contiennent # ==> les fichiers sources de chacune de vos applications # ==> Selon que l'application utilise ou non wX, vous duppliquerez diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 2f9447e..7becfcf 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -3,7 +3,7 @@ #----------------------------------------------------------------------------- IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN) INCLUDE(../cmake/UserBuildDoxygenDoc.cmake) - SUBDIRS(UserDoxygen) + ADD_SUBDIRECTORY(UserDoxygen) ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_DOXYGEN) #----------------------------------------------------------------------------- @@ -29,7 +29,7 @@ ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) #----------------------------------------------------------------------------- IF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) - SUBDIRS(UserDocumentation) + ADD_SUBDIRECTORY(UserDocumentation) ENDIF(BUILD_${PROJECT_NAME}_DOC AND BUILD_${PROJECT_NAME}_DOC_GUIDES_PDF OR BUILD_${PROJECT_NAME}_DOC_GUIDES_HTML) #----------------------------------------------------------------------------- # Web site @@ -69,7 +69,7 @@ IF(BUILD_${PROJECT_NAME}_DOC) ) # Recurse it bbtkWebSite dir - SUBDIRS(template_WebSite) + ADD_SUBDIRECTORY(template_WebSite) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index e04cd35..e641fe1 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,2 +1,2 @@ -# Add a SUBDIRS command for each one of your libraries - SUBDIRS(src1) +# Add a ADD_SUBDIRECTORY command for each one of your libraries + ADD_SUBDIRECTORY(src1) diff --git a/lib/src1/CMakeLists.txt b/lib/src1/CMakeLists.txt index 6cc702b..7270c18 100644 --- a/lib/src1/CMakeLists.txt +++ b/lib/src1/CMakeLists.txt @@ -78,7 +78,7 @@ endif() ) OPTION( BUILD_DOXYGEN_DOC "Build doxygen doc ?" OFF) IF(BUILD_DOXYGEN_DOC) - SUBDIRS(doxygen) + ADD_SUBDIRECTORY(doxygen) ENDIF(BUILD_DOXYGEN_DOC) -- 2.47.1