From bf2c6324ba81e46e5cf6ad6cd2f53a676499d410 Mon Sep 17 00:00:00 2001 From: mpa Date: Wed, 13 Nov 2013 12:02:02 +0000 Subject: [PATCH] CMake: - enable cmake testing for have message "No tests were found" if module has not tests --- CMakeLists.txt | 9 ++++++--- SalomeATOMGENConfig.cmake.in | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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@") -- 2.39.2