From: mpa Date: Wed, 13 Nov 2013 12:06:25 +0000 (+0000) Subject: CMake: X-Git-Tag: V7_3_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c60cce2a6f937e498820d0ccc269beb6966899d;p=plugins%2Fghs3dprlplugin.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 dc72eb4..9ba1049 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,11 +58,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) #for use in the future +OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) OPTION(SALOME_BUILD_DOC "Generate SALOME GHS3DPRLPLUGIN documentation" ON) +IF(SALOME_BUILD_TESTS) + ENABLE_TESTING() +ENDIF() + # Advanced options: OPTION(SALOME_BUILD_GUI "Enable GUI" ON) diff --git a/SalomeGHS3DPRLPLUGINConfig.cmake.in b/SalomeGHS3DPRLPLUGINConfig.cmake.in index f545d7a..c15375b 100644 --- a/SalomeGHS3DPRLPLUGINConfig.cmake.in +++ b/SalomeGHS3DPRLPLUGINConfig.cmake.in @@ -52,7 +52,7 @@ SET(GHS3DPRLPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@") #### Now the specificities # Options exported by the package: -#SET(SALOME_GHS3DPRLPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@) +SET(SALOME_GHS3DPRLPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@) SET(SALOME_GHS3DPRLPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@) SET(SALOME_GHS3DPRLPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)