]> SALOME platform Git repositories - samples/atomgen.git/commitdiff
Salome HOME
CMake: BR_imps_2013 V7_3_0a1
authormpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:02:02 +0000 (12:02 +0000)
committermpa <mpa@opencascade.com>
Wed, 13 Nov 2013 12:02:02 +0000 (12:02 +0000)
- enable cmake testing for have message "No tests were
found" if module has not tests

CMakeLists.txt
SalomeATOMGENConfig.cmake.in

index 21dd641aee138700e3f263708af23af5b40f9305..13ace4d46f65e92bc54d4b2902f683128ae8ad75 100755 (executable)
@@ -58,11 +58,14 @@ SET(BUILD_SHARED_LIBS TRUE)
 # Local macros:
 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
 
-# User options
-# (some options have already been defined in KERNEL) 
+# User options 
 # ============
 #OPTION(SALOME_BUILD_DOC "Generate SALOME ATOMGEN documentation" ON) #for use in the future
-#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) #for use in the future
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
+
+IF(SALOME_BUILD_TESTS)
+  ENABLE_TESTING()
+ENDIF()
 
 ##
 ## From KERNEL:
index 7d21f52493da1491ef5f1639bc4d5cec4ff48d19..4a942561ef50c993803ed5fafddb3042e529525d 100644 (file)
@@ -53,7 +53,7 @@ SET(ATOMGEN_DEFINITIONS "@GUI_DEFINITIONS@")
 
 # Options exported by the package:
 #SET(SALOME_ATOMGEN_BUILD_DOC   @SALOME_BUILD_DOC@)
-#SET(SALOME_ATOMGEN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_ATOMGEN_BUILD_TESTS @SALOME_BUILD_TESTS@)
 
 # Level 1 prerequisites:
 SET_AND_CHECK(GUI_ROOT_DIR_EXP  "@PACKAGE_GUI_ROOT_DIR@")