-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (25 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by the script cgal_create_CMakeLists
# This is the CMake script for compiling a set of CGAL applications.
cmake_minimum_required(VERSION 3.1...3.23)
project( PROJECT_3 )
# CGAL and its components
find_package( CGAL QUIET COMPONENTS )
if ( NOT CGAL_FOUND )
message(STATUS "This project requires the CGAL library, and will not be compiled.")
return()
endif()
# Boost and its components
find_package( Boost REQUIRED )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be compiled.")
return()
endif()
# include for local directory
add_subdirectory(include)
list(APPEND EXTRA_LIBS Area_maximization_minimization)
# include for local package
# ############################
add_executable( PROJECT_3 PROJECT_3.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS PROJECT_3 )
# Link the executable to CGAL and third-party libraries
target_link_libraries(PROJECT_3 PRIVATE CGAL::CGAL ${EXTRA_LIBS})