# 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 HexoticPLUGIN documentation" ${SALOME_BUILD_DOC})
+#OPTION(SALOME_BUILD_TESTS "Build SALOME tests" ON) #for use in the future
+OPTION(SALOME_BUILD_DOC "Generate SALOME HexoticPLUGIN documentation" ON)
# Advanced options:
OPTION(SALOME_BUILD_GUI "Enable HexoticPLUGIN GUI" ON)
IF(EXISTS ${GUI_ROOT_DIR})
LIST(APPEND CMAKE_MODULE_PATH "${GUI_ROOT_DIR}/adm_local/cmake_files")
FIND_PACKAGE(SalomeGUI)
+ 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})
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})
# Include directories
SET_AND_CHECK(HexoticPLUGIN_INCLUDE_DIRS "${HexoticPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
+SET(HexoticPLUGIN_INCLUDE_DIRS "${HexoticPLUGIN_INCLUDE_DIRS};@_SalomeHexoticPLUGIN_EXTRA_HEADERS@")
+SET(HexoticPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
#### Now the specificities
# Options exported by the package:
-#SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
-SET(SALOME_HEXOTICPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
+#SET(SALOME_HexoticPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
+SET(SALOME_HexoticPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
# Advanced options
-SET(SALOME_BUILD_GUI @SALOME_BUILD_GUI@)
+SET(SALOME_HexoticPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)
SET(SALOME_HEXOTICPLUGIN_USE_BLSURFPLUGIN @SALOME_HEXOTICPLUGIN_USEBLSURFPLUGIN@)
# Level 1 prerequisites:
IF(SALOME_HEXOTICPLUGIN_USE_BLSURFPLUGIN)
SET_AND_CHECK(BLSURFPLUGIN_ROOT_DIR_EXP "@PACKAGE_BLSURFPLUGIN_ROOT_DIR@")
+ LIST(APPEND HexoticPLUGIN_DEFINITIONS "-DWITH_BLSURFPLUGIN")
ELSE(SALOME_HEXOTICPLUGIN_USE_BLSURFPLUGIN)
SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_BLSURFPLUGIN_ROOT_DIR@")
IF(SALOME_HEXOTICPLUGIN_USE_BLSURFPLUGIN)