From: mpa Date: Wed, 13 Nov 2013 12:06:05 +0000 (+0000) Subject: CMake: X-Git-Tag: V7_3_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=487dc6c64d113f8146dc95029a0cf1c41af3e951;p=plugins%2Fghs3dplugin.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 f2963ec..031aab9 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,12 +57,15 @@ 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_TESTS "Build SALOME tests" ON) #For use in the future +OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) OPTION(SALOME_BUILD_DOC "Generate SALOME GHS3DPLUGIN documentation" ON) +IF(SALOME_BUILD_TESTS) + ENABLE_TESTING() +ENDIF() + # Advanced options: OPTION(SALOME_BUILD_GUI "Enable GUI" ON) diff --git a/SalomeGHS3DPLUGINConfig.cmake.in b/SalomeGHS3DPLUGINConfig.cmake.in index a395897..ffe8291 100644 --- a/SalomeGHS3DPLUGINConfig.cmake.in +++ b/SalomeGHS3DPLUGINConfig.cmake.in @@ -52,7 +52,7 @@ SET(GHS3DPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@") #### Now the specificities # Options exported by the package: -#SET(SALOME_GHS3DPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@) +SET(SALOME_GHS3DPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@) SET(SALOME_GHS3DPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@) # Advanced options