
* New 'UseLibPack' cmake file sets CMAKE_PREFIX_PATH so that find_package can be used for most packages. * Mimic fc_wrap_cpp defined in other 'UseLibPack' files. Some file dependencies did not get set correctly otherwise. * OCE 0.16 does not have Standard_ctype.hxx * shfolder.h can't be used with Win SDK 7.0
40 lines
1.7 KiB
CMake
40 lines
1.7 KiB
CMake
# Try to find nglib/netgen
|
|
# Once done this will define
|
|
#
|
|
# NGLIB_INCLUDE_DIR - where the nglib include directory can be found
|
|
# NGLIB_LIBRARIES - Link this to use nglib
|
|
# NETGEN_INCLUDE_DIRS - where the netgen include directories can be found
|
|
#
|
|
# See also: http://git.salome-platform.org/gitweb/?p=NETGENPLUGIN_SRC.git;a=summary
|
|
|
|
# nglib
|
|
FIND_PATH(NGLIB_INCLUDE_DIR nglib.h /usr/include)
|
|
FIND_LIBRARY(NGLIB_LIBRARIES nglib /usr/lib /usr/local/lib)
|
|
|
|
# netgen headers
|
|
SET(NETGEN_INCLUDE_DIRS)
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} -DNO_PARALLEL_THREADS -DOCCGEOMETRY)
|
|
|
|
if(NOT NETGENDATA)
|
|
SET(NETGENDATA /usr/share/netgen/libsrc)
|
|
endif()
|
|
|
|
FIND_PATH(NETGEN_DIR_csg csg.hpp PATHS ${NETGENDATA}/csg)
|
|
FIND_PATH(NETGEN_DIR_gen array.hpp PATHS ${NETGENDATA}/general)
|
|
FIND_PATH(NETGEN_DIR_geom2d geom2dmesh.hpp PATHS ${NETGENDATA}/geom2d)
|
|
FIND_PATH(NETGEN_DIR_gprim gprim.hpp PATHS ${NETGENDATA}/gprim)
|
|
FIND_PATH(NETGEN_DIR_la linalg.hpp PATHS ${NETGENDATA}/linalg)
|
|
FIND_PATH(NETGEN_DIR_mesh meshing.hpp PATHS ${NETGENDATA}/meshing)
|
|
FIND_PATH(NETGEN_DIR_occ occgeom.hpp PATHS ${NETGENDATA}/occ)
|
|
FIND_PATH(NETGEN_DIR_stlgeom stlgeom.hpp PATHS ${NETGENDATA}/stlgeom)
|
|
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_csg})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_gen})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_geom2d})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_gprim})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_la})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_mesh})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_occ})
|
|
SET(NETGEN_INCLUDE_DIRS ${NETGEN_INCLUDE_DIRS} ${NETGEN_DIR_stlgeom})
|
|
|