-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
38 lines (30 loc) · 930 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
cmake_minimum_required(VERSION 3.5)
project(Project)
set(TARGET ${CMAKE_PROJECT_NAME})
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})
find_package(OpenGL REQUIRED)
find_package(OpenCV REQUIRED)
find_package(glfw3 REQUIRED)
find_package(glm REQUIRED)
find_package(GLEW REQUIRED)
set(SOURCES
"src/main.cpp"
"src/utils.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})
include_directories(${OpenCV_INCLUDE_DIRS})
target_include_directories(${TARGET} PRIVATE
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/depends/imgui
${GLFW_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIR}
${GLM_INCLUDE_DIRS/../include}
)
target_link_libraries(${TARGET} ${OPENGL_LIBRARIES} ${OpenCV_LIBS} glfw GLEW::GLEW)