-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
44 lines (36 loc) · 1.36 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
cmake_minimum_required(VERSION 3.15)
project(rtx_raytracer)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-Wall -O4")
set(CMAKE_CXX_FLAGS_RELEASE_INIT "-Wall -O4")
find_package(Vulkan REQUIRED)
find_package(SDL2 REQUIRED)
find_package(OpenEXR REQUIRED)
include_directories(${Vulkan_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS} ${OpenEXR_INCLUDE_DIRS} "external" "external/lightpmm/include")
set(EXTERNAL
external/imgui/imgui.cpp
external/imgui/imgui_demo.cpp
external/imgui/imgui_draw.cpp
external/imgui/imgui_impl_sdl.cpp
external/imgui/imgui_impl_vulkan.cpp
external/imgui/imgui_widgets.cpp
external/tinyxml2.cpp)
link_directories(${Vulkan_LIBRARY} ${SDL2_LIBRARIES} ${OpenEXR_INCLUDE_DIRS})
add_executable(rtx_raytracer
src/main.cpp
src/VulkanOps.cpp
src/PostProcessing.cpp
src/VulkanWindow.cpp
src/VulkanLoader.cpp
src/RayTracingApp.cpp
src/Model.cpp
src/CameraController.cpp
src/SceneLoader.cpp
src/WeightedSampler.cpp
src/CommonOps.cpp
src/IrradianceCache.cpp
src/Shapes.cpp
src/PathGuiding.cpp
src/SampleCollector.cpp
${EXTERNAL})
target_link_libraries(rtx_raytracer ${Vulkan_LIBRARY} ${SDL2_LIBRARIES} ${CMAKE_DL_LIBS} /usr/local/lib/libIlmImf-2_5.so /usr/local/lib/libHalf-2_5.so tbb)