- enable cmake testing for have message "No tests were
found" if module has not tests
This commit is contained in:
mpa 2013-11-13 12:05:32 +00:00
parent 2adadf979b
commit d99f7ea71c

View File

@ -61,7 +61,7 @@ SET(BUILD_SHARED_LIBS TRUE)
# Local macros: # Local macros:
LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files") LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
# User options defined in KERNEL # User options
# ============ # ============
OPTION(SALOME_BUILD_DOC "Generate SALOME GEOM documentation" ON) OPTION(SALOME_BUILD_DOC "Generate SALOME GEOM documentation" ON)
OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
@ -106,9 +106,6 @@ FIND_PACKAGE(SalomeLibXml2 REQUIRED)
FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C) FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
# Other KERNEL optionals: # Other KERNEL optionals:
IF(SALOME_USE_MPI)
FIND_PACKAGE(SalomeMPI) # needed for doc generation by Sphinx
ENDIF()
IF(SALOME_BUILD_TESTS) IF(SALOME_BUILD_TESTS)
ENABLE_TESTING() ENABLE_TESTING()
FIND_PACKAGE(SalomeCppUnit) FIND_PACKAGE(SalomeCppUnit)