-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
49 lines (38 loc) · 915 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
cmake_minimum_required(VERSION 3.10)
project(DelaunayVoronoiCpp CXX)
set(CMAKE_CXX_STANDARD 20)
find_package(yaml-cpp REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(
include
${YAML_CPP_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
add_library(${PROJECT_NAME}
src/geometry_primitives.cpp
src/delaunay_triangulation.cpp
src/delaunay_triangulation_drawer.cpp
src/voronoi_diagram.cpp
)
target_link_libraries(${PROJECT_NAME}
${YAML_CPP_LIBRARIES}
${OpenCV_LIBRARIES}
)
add_executable(interactive_delaunay_voronoi
apps/interactive_delaunay_voronoi.cpp
)
target_link_libraries(interactive_delaunay_voronoi
${PROJECT_NAME}
)
add_executable(centroid_voronoi
apps/centroid_voronoi.cpp
)
target_link_libraries(centroid_voronoi
${PROJECT_NAME}
)
add_executable(generalized_voronoi
apps/generalized_voronoi_diagram.cpp
)
target_link_libraries(generalized_voronoi
${PROJECT_NAME}
)