-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
47 lines (40 loc) · 1.22 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
35
36
37
38
39
40
41
42
43
44
45
46
cmake_minimum_required(VERSION 3.5)
project(Terrain-Sketching)
set(TARGET ${CMAKE_PROJECT_NAME})
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
find_package(OpenGL REQUIRED)
find_package(glfw3 REQUIRED)
find_package(glm REQUIRED)
find_package(GLEW REQUIRED)
set(SOURCES
"src/main.cpp"
"src/utils/utils.cpp"
"src/ui/ui.cpp"
"src/terrain/terrain.cpp"
"src/camera/camera.cpp"
"src/stroke/stroke.cpp"
"src/stroke/silhouette/silhouette.cpp"
"src/stroke/region/region.cpp"
"src/stroke/shadow/shadow.cpp"
"src/stroke/boundary/boundary.cpp"
"src/mode/silhouettemode/silhouettemode.cpp"
"src/mode/regionmode/regionmode.cpp"
"src/mode/aerialmode/aerialmode.cpp"
"depends/imgui/imgui_impl_glfw.cpp"
"depends/imgui/imgui_impl_opengl3.cpp"
"depends/imgui/imgui.cpp"
"depends/imgui/imgui_demo.cpp"
"depends/imgui/imgui_draw.cpp"
"depends/imgui/imgui_widgets.cpp"
)
add_executable(${TARGET} ${SOURCES})
target_include_directories(${TARGET} PRIVATE
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/utils
${PROJECT_SOURCE_DIR}/depends/imgui
${GLFW_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIR}
${GLM_INCLUDE_DIRS/../include}
)
target_link_libraries(${TARGET} ${OPENGL_LIBRARIES} glfw GLEW::GLEW)