-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
43 lines (32 loc) · 982 Bytes
/
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
cmake_minimum_required(VERSION 3.21)
# Set the project name and language
project(antumbra)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include(cmake/Doxygen.cmake)
include(cmake/ProjectOptions.cmake)
include(cmake/CopyDll.cmake)
set(ANTUMBRA_PROJECT_DIR .)
set(ANTUMBRA_SRC_DIR antumbra)
set(ANTUMBRA_THIR_PARTY_DIR ${ANTUMBRA_SRC_DIR}/third_party)
set(ANTUMBRA_BUILD_VK ON)
if(WIN32 AND MSVC)
message("build d3d12 backend")
set(ANTUMBRA_BUILD_D3D12 ON)
else()
set(ANTUMBRA_BUILD_D3D12 OFF)
endif()
#option(BUILD_WITH_DEBUG_LAYER "enable debug layer(require vulkan sdk installed)" ON)
add_subdirectory(third_party)
add_subdirectory(antumbra)
add_subdirectory(tests)
add_subdirectory(samples)
find_package(Doxygen)
if(DOXYGEN_FOUND)
set(DOXYGEN_GENERATE_HTML YES)
set(DOXYGEN_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/docs)
doxygen_add_docs(
doxygen
antumbra/framework
COMMENT "Generate html pages"
)
endif(DOXYGEN_FOUND)