diff --git a/CMakeLists.txt b/CMakeLists.txt index 21dadc01..d2671816 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,7 @@ find_package(ZLIB REQUIRED) find_package(Threads REQUIRED) find_package(SimGear 2.5.0 REQUIRED) find_package(GPC REQUIRED) -find_package(CGAL REQUIRED) +find_package(CGAL COMPONENTS Core REQUIRED) find_package(TIFF) # needed for SRTM if (CMAKE_CL_64) find_package(JPEG) # needed for SRTM diff --git a/src/Lib/Geometry/CMakeLists.txt b/src/Lib/Geometry/CMakeLists.txt index 501438e1..a4728b7e 100644 --- a/src/Lib/Geometry/CMakeLists.txt +++ b/src/Lib/Geometry/CMakeLists.txt @@ -2,6 +2,8 @@ if (GDAL_FOUND) include_directories(${GDAL_INCLUDE_DIR}) endif (GDAL_FOUND) +include( ${CGAL_USE_FILE} ) + add_library(Geometry STATIC contour_tree.cxx line.cxx