# User options
# (some options have already been defined in KERNEL)
# ============
-OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS})
-OPTION(SALOME_BUILD_DOC "Generate SALOME HOMARD documentation" ${SALOME_BUILD_DOC})
+OPTION(SALOME_BUILD_DOC "Generate SALOME HOMARD documentation" ON)
+OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON)
##
## From KERNEL:
# Other KERNEL optionals:
IF(SALOME_USE_MPI)
- FIND_PACKAGE(SalomeMPI) # needed for doc generation by Sphinx
+ FIND_PACKAGE(SalomeMPI REQUIRED) # needed for doc generation by Sphinx
ENDIF()
IF(SALOME_BUILD_DOC)
FIND_PACKAGE(SalomeSphinx)
IF(EXISTS ${GUI_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeGUI REQUIRED)
+ ADD_DEFINITIONS(${GUI_DEFINITIONS})
+ INCLUDE_DIRECTORIES(${GUI_INCLUDE_DIRS})
ELSE(EXISTS ${GUI_ROOT_DIR})
MESSAGE(FATAL_ERROR "We absolutely need a Salome GUI, please define GUI_ROOT_DIR")
ENDIF(EXISTS ${GUI_ROOT_DIR})
FIND_PACKAGE(SalomeSIP REQUIRED)
# PyQt4
FIND_PACKAGE(SalomePyQt4 REQUIRED)
+# OCCT
+FIND_PACKAGE(SalomeCAS REQUIRED)
# Find GEOM
# ===========
IF(EXISTS ${SMESH_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeSMESH REQUIRED)
+ ADD_DEFINITIONS(${SMESH_DEFINITIONS})
+ INCLUDE_DIRECTORIES(${SMESH_INCLUDE_DIRS})
ELSE(EXISTS ${SMESH_ROOT_DIR})
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
ENDIF(EXISTS ${SMESH_ROOT_DIR})
# MedFile
FIND_PACKAGE(SalomeMEDFile REQUIRED)
-##
-## HOMARD specifics
-##
-
-# OCCT
-FIND_PACKAGE(SalomeCAS REQUIRED)
-
# Detection summary:
SALOME_PACKAGE_REPORT_AND_CHECK()
# Include directories
SET_AND_CHECK(HOMARD_INCLUDE_DIRS "${HOMARD_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+SET(HOMARD_INCLUDE_DIRS "${HOMARD_INCLUDE_DIRS};@_SalomeHOMARD_EXTRA_HEADERS@")
+SET(HOMARD_DEFINITIONS "@SMESH_DEFINITIONS@")
#### Now the specificities
# Options exported by the package:
-SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
-SET(SALOME_BUILD_DOC @SALOME_BUILD_DOC@)
+SET(SALOME_HOMARD_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_HOMARD_BUILD_DOC @SALOME_BUILD_DOC@)
# Level 1 prerequisites:
SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@")