Salome HOME
CMake:
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:26:15 +0000 (12:26 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:26:15 +0000 (12:26 +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
SalomeSIERPINSKYConfig.cmake.in

index 786e11eab146764e593d9817ef2b1f2de852753e..42e2fc150896b774755574d5e964fde83840b1b8 100755 (executable)
@@ -58,14 +58,16 @@ 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) #For use in the future
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
 # OPTION(SALOME_BUILD_DOC "Generate SALOME SIERPINSKY documentation" ON) #For use in the future
-
 OPTION(SALOME_SIERPINSKY_USE_LIBGD "Enable export to JPEG" ON)
 MARK_AS_ADVANCED(SALOME_SIERPINSKY_USE_LIBGD)
 
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
+
 ##
 ## From KERNEL:
 ##
index 7b5e27949c36e3bbe40a119e13778fb79e1a729a..511f85b586051801bf65db568e1f8036957157d6 100644 (file)
@@ -52,7 +52,7 @@ SET(SIERPINSKY_DEFINITIONS "@SMESH_DEFINITIONS@")
 #### Now the specificities
 
 # Options exported by the package:
-#SET(SALOME_SIERPINSKY_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_SIERPINSKY_BUILD_TESTS @SALOME_BUILD_TESTS@)
 #SET(SALOME_SIERPINSKY_BUILD_DOC   @SALOME_BUILD_DOC@)
 SET(SALOME_SIERPINSKY_USE_LIBGD @SALOME_SIERPINSKY_USE_LIBGD@)