To build NETGEN-5
This commit is contained in:
parent
61dab04e07
commit
a219ef71b8
@ -79,12 +79,33 @@ ENDIF(WIN32)
|
|||||||
INCLUDE(FindPackageHandleStandardArgs)
|
INCLUDE(FindPackageHandleStandardArgs)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETGEN REQUIRED_VARS NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(NETGEN REQUIRED_VARS NETGEN_INCLUDE_DIRS NETGEN_LIBRARIES)
|
||||||
|
|
||||||
|
INCLUDE(CheckCXXSourceCompiles)
|
||||||
|
|
||||||
IF(NETGEN_FOUND)
|
IF(NETGEN_FOUND)
|
||||||
|
|
||||||
|
SET(CMAKE_REQUIRED_INCLUDES "${CMAKE_REQUIRED_INCLUDES} ${NETGEN_INCLUDE_DIRS}")
|
||||||
|
SET(CMAKE_REQUIRED_LIBRARIES "${NETGEN_LIBRARIES}")
|
||||||
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
|
#include <meshing.hpp>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
netgen::Mesh* ngMesh;
|
||||||
|
ngMesh->CalcLocalH(1.0);
|
||||||
|
}
|
||||||
|
" NETGEN_V5
|
||||||
|
)
|
||||||
|
|
||||||
IF(NOT Netgen_FIND_QUIETLY)
|
IF(NOT Netgen_FIND_QUIETLY)
|
||||||
MESSAGE(STATUS "Netgen library: ${NETGEN_LIBRARIES}")
|
MESSAGE(STATUS "Netgen library: ${NETGEN_LIBRARIES}")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
SET(NETGEN_DEFINITIONS "-DOCCGEOMETRY")
|
SET(NETGEN_DEFINITIONS "-DOCCGEOMETRY")
|
||||||
|
|
||||||
|
IF(NETGEN_V5)
|
||||||
|
MESSAGE(STATUS "NETGEN V5 or later found")
|
||||||
|
SET(NETGEN_DEFINITIONS "${NETGEN_DEFINITIONS} -DNETGEN_V5")
|
||||||
|
ENDIF(NETGEN_V5)
|
||||||
|
|
||||||
#RNV: currently on windows use netgen without thread support.
|
#RNV: currently on windows use netgen without thread support.
|
||||||
#TODO: check support of the multithreading on windows
|
#TODO: check support of the multithreading on windows
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
|
@ -37,6 +37,7 @@ ADD_DEFINITIONS(
|
|||||||
${OMNIORB_DEFINITIONS}
|
${OMNIORB_DEFINITIONS}
|
||||||
${CAS_DEFINITIONS}
|
${CAS_DEFINITIONS}
|
||||||
${BOOST_DEFINITIONS}
|
${BOOST_DEFINITIONS}
|
||||||
|
${NETGEN_DEFINITIONS}
|
||||||
)
|
)
|
||||||
|
|
||||||
# libraries to link to
|
# libraries to link to
|
||||||
|
Loading…
Reference in New Issue
Block a user