diff --git a/Code/CMakeLists.txt b/Code/CMakeLists.txt index c25ca2df5bb66e2e20a4de4f97cf2ef90f79b4ae..e093197f997868b7ab6fa010bede2a37359ab026 100644 --- a/Code/CMakeLists.txt +++ b/Code/CMakeLists.txt @@ -31,8 +31,10 @@ IF(OTB_USE_PQXX) ADD_SUBDIRECTORY(GeospatialAnalysis) ENDIF(OTB_USE_PQXX) -ADD_SUBDIRECTORY(ApplicationEngine) -ADD_SUBDIRECTORY(Wrappers) +IF(BUILD_APPLICATIONS) + ADD_SUBDIRECTORY(ApplicationEngine) + ADD_SUBDIRECTORY(Wrappers) +ENDIF(BUILD_APPLICATIONS) IF(OTB_COMPILE_WITH_FULL_WARNING) IF(CMAKE_COMPILER_IS_GNUCXX) diff --git a/Testing/Code/CMakeLists.txt b/Testing/Code/CMakeLists.txt index 52eea7ab4ac3d30fc8f609f788093c72c75779dc..c2dc61d7e8d6bc0d1d2ff7b2b8929f7b4571d462 100644 --- a/Testing/Code/CMakeLists.txt +++ b/Testing/Code/CMakeLists.txt @@ -1,6 +1,5 @@ # $Id$ -ADD_SUBDIRECTORY(ApplicationEngine) ADD_SUBDIRECTORY(Common) ADD_SUBDIRECTORY(IO) ADD_SUBDIRECTORY(BasicFilters) @@ -34,5 +33,6 @@ IF(OTB_USE_PQXX) ENDIF(OTB_USE_PQXX) IF(BUILD_APPLICATIONS) + ADD_SUBDIRECTORY(ApplicationEngine) ADD_SUBDIRECTORY(Wrappers) ENDIF(BUILD_APPLICATIONS)