- SALOME_BUILD_DOC, SALOME_BUILD_TESTS and SALOME_BUILD_DOC should be independent in each module
- Add definitions and include directories of dependent modules
This commit is contained in:
parent
2c329c3f03
commit
9569036bf2
@ -60,8 +60,8 @@ LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/adm_local/cmake_files")
|
|||||||
# User options
|
# User options
|
||||||
# (some options have already been defined in KERNEL)
|
# (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_TESTS "Build SALOME tests" ON) #for use in the future
|
||||||
OPTION(SALOME_BUILD_DOC "Generate SALOME NETGENPLUGIN documentation" ${SALOME_BUILD_DOC})
|
OPTION(SALOME_BUILD_DOC "Generate SALOME NETGENPLUGIN documentation" ON)
|
||||||
|
|
||||||
# Advanced options:
|
# Advanced options:
|
||||||
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
OPTION(SALOME_BUILD_GUI "Enable GUI" ON)
|
||||||
@ -109,7 +109,7 @@ ENDIF(SALOME_BUILD_GUI)
|
|||||||
# OCCT
|
# OCCT
|
||||||
FIND_PACKAGE(SalomeCAS REQUIRED)
|
FIND_PACKAGE(SalomeCAS REQUIRED)
|
||||||
# VTK
|
# VTK
|
||||||
FIND_PACKAGE(SalomeVTK 6.0)
|
FIND_PACKAGE(SalomeVTK 6.0 REQUIRED)
|
||||||
|
|
||||||
|
|
||||||
# Find GEOM
|
# Find GEOM
|
||||||
@ -129,6 +129,13 @@ SET(SMESH_ROOT_DIR $ENV{SMESH_ROOT_DIR} CACHE PATH "Path to the Salome SMESH")
|
|||||||
IF(EXISTS ${SMESH_ROOT_DIR})
|
IF(EXISTS ${SMESH_ROOT_DIR})
|
||||||
LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files")
|
LIST(APPEND CMAKE_MODULE_PATH "${SMESH_ROOT_DIR}/adm_local/cmake_files")
|
||||||
FIND_PACKAGE(SalomeSMESH REQUIRED)
|
FIND_PACKAGE(SalomeSMESH REQUIRED)
|
||||||
|
ADD_DEFINITIONS(${SMESH_DEFINITIONS})
|
||||||
|
INCLUDE_DIRECTORIES(${SMESH_INCLUDE_DIRS})
|
||||||
|
IF(SALOME_BUILD_GUI)
|
||||||
|
IF(NOT SALOME_SMESH_BUILD_GUI)
|
||||||
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH with GUI, please set SALOME_BUILD_GUI=ON in SMESH module")
|
||||||
|
ENDIF(NOT SALOME_SMESH_BUILD_GUI)
|
||||||
|
ENDIF(SALOME_BUILD_GUI)
|
||||||
ELSE(EXISTS ${SMESH_ROOT_DIR})
|
ELSE(EXISTS ${SMESH_ROOT_DIR})
|
||||||
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
|
MESSAGE(FATAL_ERROR "We absolutely need a Salome SMESH, please define SMESH_ROOT_DIR")
|
||||||
ENDIF(EXISTS ${SMESH_ROOT_DIR})
|
ENDIF(EXISTS ${SMESH_ROOT_DIR})
|
||||||
|
@ -43,15 +43,17 @@ SET_AND_CHECK(NETGENPLUGIN_ROOT_DIR_EXP "@PACKAGE_CMAKE_INSTALL_PREFIX@")
|
|||||||
|
|
||||||
# Include directories
|
# Include directories
|
||||||
SET_AND_CHECK(NETGENPLUGIN_INCLUDE_DIRS "${NETGENPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
|
SET_AND_CHECK(NETGENPLUGIN_INCLUDE_DIRS "${NETGENPLUGIN_ROOT_DIR_EXP}/@SALOME_INSTALL_HEADERS@")
|
||||||
|
SET(NETGENPLUGIN_INCLUDE_DIRS "${NETGENPLUGIN_INCLUDE_DIRS};@_SalomeNETGENPLUGIN_EXTRA_HEADERS@")
|
||||||
|
SET(NETGENPLUGIN_DEFINITIONS "@SMESH_DEFINITIONS@")
|
||||||
|
|
||||||
#### Now the specificities
|
#### Now the specificities
|
||||||
|
|
||||||
# Options exported by the package:
|
# Options exported by the package:
|
||||||
#SET(SALOME_BUILD_TESTS @SALOME_BUILD_TESTS@)
|
#SET(SALOME_NETGENPLUGIN_BUILD_TESTS @SALOME_BUILD_TESTS@)
|
||||||
SET(SALOME_BUILD_DOC @SALOME_BUILD_DOC@)
|
SET(SALOME_NETGENPLUGIN_BUILD_DOC @SALOME_BUILD_DOC@)
|
||||||
|
|
||||||
# Advanced options
|
# Advanced options
|
||||||
SET(SALOME_BUILD_GUI @SALOME_BUILD_GUI@)
|
SET(SALOME_NETGENPLUGIN_BUILD_GUI @SALOME_BUILD_GUI@)
|
||||||
|
|
||||||
# Level 1 prerequisites:
|
# Level 1 prerequisites:
|
||||||
SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@")
|
SET_AND_CHECK(SMESH_ROOT_DIR_EXP "@PACKAGE_SMESH_ROOT_DIR@")
|
||||||
|
Loading…
Reference in New Issue
Block a user