-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (38 loc) · 1.02 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
cmake_minimum_required(VERSION 3.20)
project(s2500_image_viewer)
set(CMAKE_CXX_STANDARD 14)
find_package(OpenGL REQUIRED)
find_package(SDL2 REQUIRED)
add_library("glad" "glad/src/glad.c")
find_package(Threads REQUIRED)
include_directories("glad/include")
include_directories(${SDL2_INCLUDE_DIRS})
add_definitions(-DIMGUI_IMPL_OPENGL_LOADER_GLAD)
set(sources
imgui/imconfig.h
imgui/imgui.cpp
imgui/imgui_demo.cpp
imgui/imgui_draw.cpp
imgui/imgui.h
imgui/imgui_internal.h
imgui/imgui_tables.cpp
imgui/imgui_widgets.cpp
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
imgui/imgui_impl_sdl.h
imgui/imgui_impl_sdl.cpp
imgui/imgui_impl_opengl3.cpp
imgui/imgui_impl_opengl3.h
imgui/imgui_impl_opengl3_loader.h
Logger.cpp
SequenceWriter.cpp
main.cpp)
add_executable(${CMAKE_PROJECT_NAME} ${sources})
target_link_libraries(${CMAKE_PROJECT_NAME}
"glad"
Threads::Threads
${OPENGL_gl_LIBRARY}
${SDL2_LIBRARIES}
${CMAKE_DL_LIBS}
)