-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (26 loc) · 1.03 KB
/
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
# Specify the minimum CMAKE version required
cmake_minimum_required(VERSION 3.5.0)
project(triangulation-graph)
## Set output directories
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin")
include_directories(
"/opt/homebrew/include/"
"${CMAKE_CURRENT_SOURCE_DIR}/include/" ,
"${CMAKE_CURRENT_SOURCE_DIR}/src/")
link_directories(
"/opt/homebrew/lib/"
"${CMAKE_CURRENT_SOURCE_DIR}/lib/")
find_package(Boost)
# Source related variables
set(MAIN_SRC
src/Point.cpp
src/MeshCell.cpp
src/MeshTriangulation.cpp
src/TriangulationFlipGraph.cpp)
list(TRANSFORM MAIN_SRC PREPEND "${CMAKE_CURRENT_SOURCE_DIR}/")
add_executable(triangulation-graph ${MAIN_SRC} src/main.cpp)
set_property(TARGET triangulation-graph PROPERTY CXX_STANDARD 17)
add_subdirectory(tests)
add_subdirectory(benchmark)