-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
42 lines (36 loc) · 968 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
cmake_minimum_required(VERSION 3.12)
project(Hamilton)
find_package(Boost REQUIRED)
find_package(GLUT REQUIRED)
find_package(OpenGL REQUIRED)
find_package(Eigen3 3.3 REQUIRED NO_MODULE)
find_package(Threads REQUIRED)
include_directories(include/)
include_directories(include/LBFGS)
include_directories(${Boost_INCLUDE_DIR})
set(CMAKE_CXX_FLAGS "-Wall -g")
set(CMAKE_CXX_STANDARD 17)
add_executable(${PROJECT_NAME}
src/main.cpp
src/graphics/DirectionField.cpp
src/graphics/Globals.cpp
src/graphics/Shape.cpp
src/graphics/triangulate.cpp
src/graphics/Window.cpp
src/initialization/GraphCreator.cpp
src/initialization/CycleCreator.cpp
src/LBFGS/clipper.cpp
src/LBFGS/cvt.cpp
src/localAlgo/LocalOperator.cpp
src/localAlgo/ObjectiveFunctions.cpp
src/managers/GeneticAlgorithm.cpp
src/managers/Printer.cpp
src/tools/Layer.cpp
)
TARGET_LINK_LIBRARIES(${PROJECT_NAME}
${Boost_LIBRARIES}
GLUT::GLUT
${OPENGL_LIBRARIES}
Eigen3::Eigen
Threads::Threads
)