From: mpa Date: Wed, 13 Nov 2013 12:17:54 +0000 (+0000) Subject: CMake: X-Git-Tag: V7_3_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5167d915963fabf9bbdcdd32ebd72a4e035f41df;p=modules%2Fhexablock.git CMake: - delete kernel dependency because options are local now - enable cmake testing for have message "No tests were found" if module has not tests --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c70752..966facd 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,11 +54,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) OPTION(SALOME_BUILD_DOC "Generate SALOME HEXABLOCK documentation" ON) +IF(SALOME_BUILD_TESTS) + ENABLE_TESTING() +ENDIF() + # Advanced options: OPTION(SALOME_BUILD_GUI "Enable GUI" ON) MARK_AS_ADVANCED(SALOME_BUILD_GUI)