OPTION(SALOME_BUILD_DOC "Generate SALOME HOMARD documentation" ON)
OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
-# For salome test
-# ============
+
+# Other KERNEL optionals:
IF(SALOME_BUILD_TESTS)
ENABLE_TESTING()
FIND_PACKAGE(SalomeCppUnit)
SALOME_LOG_OPTIONAL_PACKAGE(CppUnit SALOME_BUILD_TESTS)
ENDIF()
+IF(SALOME_BUILD_DOC)
+ FIND_PACKAGE(SalomeSphinx)
+ SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
+ENDIF()
+
##
## From KERNEL:
# HDF5
FIND_PACKAGE(SalomeHDF5 REQUIRED COMPONENTS C)
-# Other KERNEL optionals:
-IF(SALOME_BUILD_DOC)
- FIND_PACKAGE(SalomeSphinx)
- SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
-ENDIF()
-
##
## From GUI:
ADD_SUBDIRECTORY(src)
IF(SALOME_BUILD_DOC)
ADD_SUBDIRECTORY(doc)
+ENDIF()
ADD_SUBDIRECTORY(bin)
-ENDIF(SALOME_BUILD_DOC)
# Header configuration
# ====================
${SUBDIRS_COMMON}
)
-# For salome test
-IF(SALOME_BUILD_TESTS)
- INSTALL(FILES CTestTestfileInstall.cmake
- DESTINATION ${SALOME_HOMARD_INSTALL_TEST}
- RENAME CTestTestfile.cmake)
-ENDIF(SALOME_BUILD_TESTS)
-
FOREACH(dir ${SUBDIRS})
- ADD_SUBDIRECTORY(${dir})
+ ADD_SUBDIRECTORY(${dir})
ENDFOREACH(dir ${SUBDIRS})
+