# User options
# (some options have already been defined in KERNEL)
# ============
-#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ${SALOME_BUILD_TESTS}) For use in the future
-#OPTION(SALOME_BUILD_DOC "Generate SALOME HEXABLOCKPLUGIN documentation" ${SALOME_BUILD_DOC}) For use in the future
+#OPTION(SALOME_BUILD_DOC "Generate SALOME HEXABLOCKPLUGIN documentation" ON) #for use in the future
+#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) #for use in the future
# Advanced options:
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
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})
IF(EXISTS ${HEXABLOCK_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${HEXABLOCK_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeHEXABLOCK REQUIRED)
+ ADD_DEFINITIONS(${HEXABLOCK_DEFINITIONS})
+ INCLUDE_DIRECTORIES(${HEXABLOCK_INCLUDE_DIRS})
ELSE(EXISTS ${HEXABLOCK_ROOT_DIR})
MESSAGE(FATAL_ERROR "We absolutely need a Salome HEXABLOCK, please define HEXABLOCK_ROOT_DIR")
ENDIF(EXISTS ${HEXABLOCK_ROOT_DIR})
# Include directories
SET_AND_CHECK(HEXABLOCKPLUGIN_INCLUDE_DIRS "${HEXABLOCKPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+SET(HEXABLOCKPLUGIN_INCLUDE_DIRS "${HEXABLOCKPLUGIN_INCLUDE_DIRS};@_SalomeHEXABLOCKPLUGIN_EXTRA_HEADERS@")
+SET(HEXABLOCKPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
#### Now the specificities