From 16599ca7fac2ce8c265b174206b526602a05e08a Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 13 Nov 2013 12:03:55 +0000 Subject: [PATCH] CMake: - enable cmake testing for have message "No tests were found" if module has not tests --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93f6da1..26fdf9a 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_DOC "Generate SALOME BLSURFPLUGIN documentation" ON) OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) +IF(SALOME_BUILD_TESTS) + ENABLE_TESTING() +ENDIF() + # Advanced options: OPTION(SALOME_BUILD_GUI "Enable BLSURFPLUGIN GUI" ON) MARK_AS_ADVANCED(SALOME_BUILD_GUI) -- 2.39.2