Commit 5da3b800 authored by Kersten Schuster's avatar Kersten Schuster

Added cmake finder for lib GeodesicNNF.

parent 7b190e8c
# - Try to find GeodesicNNF
# Once done this will define
#
# GEODESICNNF_FOUND - system has GEODESICNNF
# GEODESICNNF_INCLUDE_DIRS - the GEODESICNNF include directory
# GEODESICNNF_LIBRARY_DIR - where the libraries are
# GEODESICNNF_LIBRARY - Link these to use GEODESICNNF
#
IF (GEODESICNNF_INCLUDE_DIRS)
# Already in cache, be silent
SET(GEODESICNNF_FIND_QUIETLY TRUE)
ENDIF (GEODESICNNF_INCLUDE_DIRS)
# search all lib directories in packages for OpenFlipper
file (
GLOB _libdirs
"${CMAKE_SOURCE_DIR}/libs"
"${CMAKE_SOURCE_DIR}/Package-*/libs"
)
FIND_PATH(GEODESICNNF_INCLUDE_DIR GeodesicNNF/GeodesicNNF.hh
PATHS ${_libdirs}
${CMAKE_SOURCE_DIR}/libs )
add_definitions (-DGEODESICNNFDLL -DUSEGEODESICNNF )
IF (GEODESICNNF_INCLUDE_DIR)
SET(GEODESICNNF_FOUND TRUE)
SET( GEODESICNNF_LIBRARY_DIR "${CMAKE_BINARY_DIR}/Build/${ACG_PROJECT_LIBDIR}" )
SET( GEODESICNNF_LIBRARY "GeodesicNNF")
file(RELATIVE_PATH rel_path ${CMAKE_SOURCE_DIR} ${GEODESICNNF_INCLUDE_DIR})
SET(GEODESICNNF_INCLUDE_DIRS "${GEODESICNNF_INCLUDE_DIR}" "${CMAKE_BINARY_DIR}/${rel_path}/GeodesicNNF")
ELSE (GEODESICNNF_INCLUDE_DIR)
SET( GEODESICNNF_FOUND FALSE )
SET( GEODESICNNF_LIBRARY_DIR )
ENDIF (GEODESICNNF_INCLUDE_DIR)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment