From: mpa Date: Wed, 13 Nov 2013 12:02:02 +0000 (+0000) Subject: CMake: X-Git-Tag: V7_3_0a1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_imps_2013;p=samples%2Fatomgen.git CMake: - enable cmake testing for have message "No tests were found" if module has not tests --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 21dd641..13ace4d 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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: diff --git a/SalomeATOMGENConfig.cmake.in b/SalomeATOMGENConfig.cmake.in index 7d21f52..4a94256 100644 --- a/SalomeATOMGENConfig.cmake.in +++ b/SalomeATOMGENConfig.cmake.in @@ -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@")