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

New cgal path in FindCGAL for MAcOS



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6492 383ad7c9-94d9-4d36-a494-682f7c89f535
parent fb7eb2f2
...@@ -22,11 +22,9 @@ IF (NOT APPLE ) ...@@ -22,11 +22,9 @@ IF (NOT APPLE )
ELSE( NOT APPLE) ELSE( NOT APPLE)
# 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 "${CMAKE_SOURCE_DIR}/MacOS/Libs/CGAL-3.4/include" PATHS "/opt/local/CGAL-3.4/include"
) )
SET( "CGAL_DIR ${CMAKE_SOURCE_DIR}/MacOS/Libs/CGAL-3.4" )
ENDIF( NOT APPLE ) ENDIF( NOT APPLE )
...@@ -54,16 +52,17 @@ IF(CGAL_INCLUDE_DIR ) ...@@ -54,16 +52,17 @@ IF(CGAL_INCLUDE_DIR )
IF(APPLE) IF(APPLE)
find_path(CGAL_LIBRARY_DIR find_path(CGAL_LIBRARY_DIR
NAMES "libCGAL.dylib" NAMES "libCGAL.dylib"
PATHS "${CMAKE_SOURCE_DIR}/MacOS/Libs/CGAL-3.4/lib" PATHS "/opt/local/CGAL-3.4/lib/"
DOC "Directory containing the CGAL library" DOC "Directory containing the CGAL library"
) )
list ( APPEND CGAL_LIBRARIES CGAL CGAL_Core CGAL_ImageIO CGAL_PDB CGAL_Qt4) list ( APPEND CGAL_LIBRARIES CGAL CGAL_Core CGAL_ImageIO CGAL_PDB CGAL_Qt4)
ELSE( APPLE )
add_definitions (-DCGAL_AUTOLINK)
ENDIF(APPLE) ENDIF(APPLE)
add_definitions (-DCGAL_AUTOLINK)
ELSE(CGAL_INCLUDE_DIR ) ELSE(CGAL_INCLUDE_DIR )
SET(CGAL_FOUND 0) SET(CGAL_FOUND 0)
SET(CGAL_INCLUDE_DIR) SET(CGAL_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