-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
41 lines (31 loc) · 1.1 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
cmake_minimum_required(VERSION 3.20.0)
project(tiny_graph_plot)
if(MSVC)
add_definitions(/MP)
endif()
set(SOURCES
source/buffer_set.cpp
source/canvas.cpp
source/canvas_manager.cpp
source/glfw_callback_functions.cpp
source/main.cpp
source/shader_program.cpp
source/stb_image_write_impl.cpp
source/text_renderer.cpp
source/user_window.cpp
)
include_directories(include)
include_directories(third_party/glfw-3.3.2.bin.WIN64/include)
include_directories(third_party/glew-2.1.0/include)
include_directories(third_party/stbi)
# Choose one depending on your build environment.
link_directories(third_party/glfw-3.3.2.bin.WIN64/lib-mingw-w64)
#link_directories(third_party/glfw-3.3.2.bin.WIN64/lib-vc2017)
#link_directories(third_party/glfw-3.3.2.bin.WIN64/lib-vc2019)
link_directories(third_party/glew-2.1.0/lib/Release/x64)
add_executable(tiny_graph_plot ${SOURCES})
target_link_libraries(tiny_graph_plot glfw3)
target_link_libraries(tiny_graph_plot glew32)
target_link_libraries(tiny_graph_plot opengl32)
install(TARGETS tiny_graph_plot DESTINATION bin)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -pedantic")