]> SALOME platform Git repositories - modules/hexablock.git/commitdiff
Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:17:54 +0000 (12:17 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:17:54 +0000 (12:17 +0000)
- delete kernel dependency because options are local now
- enable cmake testing for have message "No tests were
found" if module has not tests

CMakeLists.txt

index 6c707524fb15cf27c5a9165958622ba8462b80ff..966facdd0223d64e023adbbd340c266dc4e73b78 100755 (executable)
@@ -54,11 +54,14 @@ SET(BUILD_SHARED_LIBS TRUE)
 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
 
 # User options
-# (some options have already been defined in KERNEL) 
 # ============
 OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
 OPTION(SALOME_BUILD_DOC "Generate SALOME HEXABLOCK documentation" ON)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 # Advanced options:
 OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
 MARK_AS_ADVANCED(SALOME_BUILD_GUI)