-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
46 lines (35 loc) · 1.08 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
45
cmake_minimum_required(VERSION 3.5)
project(dxr_ao_bake)
if (NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
endif()
add_definitions(-DNOMINMAX -DGLM_ENABLE_EXPERIMENTAL -DSDL_MAIN_HANDLED
-DWIN32_LEAN_AND_MEAN)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_LIST_DIR}/cmake")
find_package(Threads REQUIRED)
find_package(SDL2 CONFIG REQUIRED)
# Include glm as an external project
include(cmake/glm.cmake)
add_subdirectory(imgui)
add_subdirectory(util)
add_subdirectory(dxr)
add_dxil_embed_library(render_ao_map_vs
render_ao_map.hlsl
COMPILE_OPTIONS -O3 -T vs_6_5 -E vsmain
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_LIST_DIR}/dxr)
add_dxil_embed_library(render_ao_map_fs
render_ao_map.hlsl
COMPILE_OPTIONS -O3 -T ps_6_5 -E fsmain
INCLUDE_DIRECTORIES
${CMAKE_CURRENT_LIST_DIR}/dxr)
add_executable(dxr_ao_bake main.cpp)
set_target_properties(dxr_ao_bake PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON)
target_link_libraries(dxr_ao_bake PUBLIC
util
display
dxr
render_ao_map_vs
render_ao_map_fs)