Commit 59fc0570 authored by Henrik Zimmer's avatar Henrik Zimmer
Browse files

added cmake finder for geometry lib

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11451 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 854e001e
# - Try to find GEOMETRYLIB
# Once done this will define
#
# GEOMETRYLIB_FOUND - system has GEOMETRYLIB
# GEOMETRYLIB_INCLUDE_DIR - the GEOMETRYLIB include directory
# GEOMETRYLIB_LIBRARY_DIR - where the libraries are
# GEOMETRYLIB_LIBRARY - Link these to use GEOMETRYLIB
#
IF (GEOMETRYLIB_INCLUDE_DIR)
# Already in cache, be silent
SET(GEOMETRYLIB_FIND_QUIETLY TRUE)
ENDIF (GEOMETRYLIB_INCLUDE_DIR)
FIND_PATH( GEOMETRYLIB_INCLUDE_DIR
NAMES GeometryLib/Config/GeometryLibDefines.hh
PATHS /data1/home1/zimmer/projects/libs/
"${CMAKE_SOURCE_DIR}/libs/"
"${CMAKE_SOURCE_DIR}/.."
../libs/
./
# ~/projects/libs/
)
add_definitions (-DGEOMETRYLIBDLL -DUSEGEOMETRYLIB )
IF (GEOMETRYLIB_INCLUDE_DIR)
SET(GEOMETRYLIB_FOUND TRUE)
SET( GEOMETRYLIB_LIBRARY_DIR "${ACG_PROJECT_LIBDIR}" )
SET( GEOMETRYLIB_LIBRARY "GeometryLib")
ELSE (GEOMETRYLIB_INCLUDE_DIR)
SET( GEOMETRYLIB_FOUND FALSE )
SET( GEOMETRYLIB_LIBRARY_DIR )
ENDIF (GEOMETRYLIB_INCLUDE_DIR)
Supports Markdown
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