Commit 914db887 authored by Jan Möbius's avatar Jan Möbius
Browse files

cgal include

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6224 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 4fc26273
# - Find CGAL # - Find CGAL
# Find the CGAL autolinking headers. # Find the CGAL autolinking headers.
# #
# CGAL_INCLUDE_DIR - where to find CGAL.h, etc. # CGAL_INCLUDE_DIR - where to find CGAL.h, etc.
# CGAL_FOUND - True if CGAL found. # CGAL_FOUND - True if CGAL found.
IF (CGAL_INCLUDE_DIR) IF (CGAL_INCLUDE_DIR)
# Already in cache, be silent # Already in cache, be silent
SET(CGAL_FIND_QUIETLY TRUE) SET(CGAL_FIND_QUIETLY TRUE)
ENDIF (CGAL_INCLUDE_DIR) ENDIF (CGAL_INCLUDE_DIR)
GET_FILENAME_COMPONENT(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH ) GET_FILENAME_COMPONENT(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH )
# Look for the header file. # Look for the header file.
FIND_PATH(CGAL_INCLUDE_DIR NAMES CGAL/auto_link/auto_link.h FIND_PATH(CGAL_INCLUDE_DIR NAMES CGAL/auto_link/auto_link.h
PATHS ../../External/include PATHS ../../External/include
"C:/Program Files/CGAL-3.4/include" "C:/Program Files/CGAL-3.4/include"
"C:/Programme/CGAL-3.4/include" "C:/Programme/CGAL-3.4/include"
${module_file_path}/../../../External/include) "C:/libs/CGAL-3.4/include"
MARK_AS_ADVANCED(CGAL_INCLUDE_DIR) ${module_file_path}/../../../External/include)
MARK_AS_ADVANCED(CGAL_INCLUDE_DIR)
# Copy the results to the output variables.
IF(CGAL_INCLUDE_DIR ) # Copy the results to the output variables.
SET(CGAL_FOUND 1) IF(CGAL_INCLUDE_DIR )
SET(CGAL_INCLUDE_DIR ${CGAL_INCLUDE_DIR}) SET(CGAL_FOUND 1)
# Look for the taucs dir. SET(CGAL_INCLUDE_DIR ${CGAL_INCLUDE_DIR})
FIND_PATH(CGAL_TAUCS_DIR NAMES include/taucs.h # Look for the taucs dir.
PATHS ${CGAL_INCLUDE_DIR}/../auxiliary/taucs) FIND_PATH(CGAL_TAUCS_DIR NAMES include/taucs.h
add_definitions (-DCGAL_AUTOLINK) PATHS ${CGAL_INCLUDE_DIR}/../auxiliary/taucs)
ELSE(CGAL_INCLUDE_DIR ) add_definitions (-DCGAL_AUTOLINK)
SET(CGAL_FOUND 0) ELSE(CGAL_INCLUDE_DIR )
SET(CGAL_INCLUDE_DIR) SET(CGAL_FOUND 0)
ENDIF(CGAL_INCLUDE_DIR ) SET(CGAL_INCLUDE_DIR)
ENDIF(CGAL_INCLUDE_DIR )
# Report the results.
IF(NOT CGAL_FOUND) # Report the results.
SET(CGAL_DIR_MESSAGE IF(NOT CGAL_FOUND)
"CGAL was not found. Make sure CGAL_INCLUDE_DIR is set to the directories containing the include files for CGAL. .") SET(CGAL_DIR_MESSAGE
IF(CGAL_FIND_REQUIRED) "CGAL was not found. Make sure CGAL_INCLUDE_DIR is set to the directories containing the include files for CGAL. .")
MESSAGE(FATAL_ERROR "${CGAL_DIR_MESSAGE}") IF(CGAL_FIND_REQUIRED)
ELSEIF(NOT CGAL_FIND_QUIETLY) MESSAGE(FATAL_ERROR "${CGAL_DIR_MESSAGE}")
MESSAGE(STATUS "${CGAL_DIR_MESSAGE}") ELSEIF(NOT CGAL_FIND_QUIETLY)
ELSE(NOT CGAL_FIND_QUIETLY) MESSAGE(STATUS "${CGAL_DIR_MESSAGE}")
ENDIF(CGAL_FIND_REQUIRED) ELSE(NOT CGAL_FIND_QUIETLY)
ELSE (NOT CGAL_FOUND) ENDIF(CGAL_FIND_REQUIRED)
IF(NOT CGAL_FIND_QUIETLY) ELSE (NOT CGAL_FOUND)
MESSAGE(STATUS "Looking for CGAL - found") IF(NOT CGAL_FIND_QUIETLY)
ENDIF(NOT CGAL_FIND_QUIETLY) MESSAGE(STATUS "Looking for CGAL - found")
ENDIF(NOT CGAL_FOUND) ENDIF(NOT CGAL_FIND_QUIETLY)
ENDIF(NOT CGAL_FOUND)
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