-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
36 lines (24 loc) · 978 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.20)
project(AUTOr3pair)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_BUILD_TYPE "Release")
set( CMAKE_CXX_FLAGS "-O2" )
set(CGAL_DATA_DIR ".")
# CGAL 6.0
find_package( CGAL QUIET COMPONENTS )
if ( CGAL_FOUND )
include_directories(${CGAL_INCLUDE_DIRS})
message(STATUS "CGAL found, version: ${CGAL_VERSION}")
message(STATUS "CGAL Libraries: ${CGAL_LIBRARIES}")
message(STATUS "CGAL 3rd Party Libraries: ${CGAL_3RD_PARTY_LIBRARIES}")
else()
message(SEND_ERROR "AUTOr3pair requires the CGAL library")
return()
endif()
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/thirdparty)
# Set VAL3DITY_LIBRARY to ON to build val3dity as a library
set(VAL3DITY_LIBRARY ON CACHE BOOL "Build val3dity as a library" FORCE)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../val3dity/ build)
FILE(GLOB SRC_FILES src/*.cpp src/*.h)
add_executable(AUTOr3pair ${SRC_FILES})
target_link_libraries(AUTOr3pair LINK_PUBLIC val3dity CGAL::CGAL)