LIST(REMOVE_ITEM CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
FIND_PACKAGE(CGAL)
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
+ IF(CGAL_HEADER_ONLY)
+ SET(CGAL_LIBS "-NOTFOUND")
+ ELSE(CGAL_HEADER_ONLY)
+ SET(CGAL_LIBS "${CGAL_CONFIGURED_LIBRARIES}")
+ ENDIF(CGAL_HEADER_ONLY)
ELSE(DEAL_II_HAVE_CXX17)
SET(CGAL_FOUND FALSE)
SET(CGAL_INCLUDE_DIRS "-NOTFOUND")
+ SET(CGAL_LIBS "-NOTFOUND")
MESSAGE(STATUS "CGAL wrappers require C++17. Disabling CGAL Support.")
ENDIF(DEAL_II_HAVE_CXX17)
DEAL_II_PACKAGE_HANDLE(CGAL
- INCLUDE_DIRS REQUIRED CGAL_INCLUDE_DIRS
- USER_INCLUDE_DIRS REQUIRED CGAL_INCLUDE_DIRS
- CLEAR CGAL_INCLUDE_DIRS
+ INCLUDE_DIRS
+ REQUIRED CGAL_INCLUDE_DIRS
+ LIBRARIES
+ OPTIONAL CGAL_LIBS
+ USER_INCLUDE_DIRS
+ REQUIRED CGAL_INCLUDE_DIRS
+ CLEAR
+ CGAL_INCLUDE_DIRS
+ CGAL_LIBS
)