-
Notifications
You must be signed in to change notification settings - Fork 32
/
CMakeLists.txt
39 lines (32 loc) · 1.24 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
cmake_minimum_required(VERSION 3.8)
project(RayTracing CXX)
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
find_package(glfw3 REQUIRED)
find_package(OpenCL_Light REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
add_library(imgui STATIC
3rdparty/imgui/imconfig.h
3rdparty/imgui/imgui.cpp
3rdparty/imgui/imgui.h
3rdparty/imgui/imgui_demo.cpp
3rdparty/imgui/imgui_draw.cpp
3rdparty/imgui/imgui_internal.h
3rdparty/imgui/imgui_tables.cpp
3rdparty/imgui/imgui_widgets.cpp
3rdparty/imgui/imstb_rectpack.h
3rdparty/imgui/imstb_textedit.h
3rdparty/imgui/imstb_truetype.h
3rdparty/imgui/backends/imgui_impl_opengl3.cpp
3rdparty/imgui/backends/imgui_impl_opengl3.h
3rdparty/imgui/backends/imgui_impl_glfw.cpp
3rdparty/imgui/backends/imgui_impl_glfw.h
)
target_compile_features(imgui PRIVATE cxx_std_17)
target_include_directories(imgui PUBLIC 3rdparty/imgui 3rdparty/stb)
target_compile_options(imgui PRIVATE /WX)
target_compile_definitions(imgui PRIVATE IMGUI_IMPL_OPENGL_LOADER_GLEW)
target_link_libraries(imgui PRIVATE GLEW::GLEW glfw3::glfw3)
add_subdirectory(src)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/CLI11)