-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakelists.txt
42 lines (32 loc) · 1.28 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
# project/CMakeLists.txt
cmake_minimum_required(VERSION 3.21)
# I include a file I wrote for handling my dependencies
include("${CMAKE_CURRENT_LIST_DIR}/cmake/deps.cmake")
# That call to include must be done before creating the project
project(cube-tracing VERSION 0.1.0)
add_executable(${PROJECT_NAME}
"${CMAKE_CURRENT_LIST_DIR}/src/main.cpp"
"${CMAKE_CURRENT_LIST_DIR}/src/gvox/map_loader.cpp"
"${CMAKE_CURRENT_LIST_DIR}/src/accel_struct_mngr.cpp"
)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_20)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address,undefined -fno-omit-frame-pointer -fsanitize-address-use-after-return=runtime")
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=address,undefined")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Zi /MT /EHsc /Oy- /Ob0")
find_package(daxa CONFIG REQUIRED)
find_package(gvox CONFIG REQUIRED)
find_package(glfw3 CONFIG REQUIRED)
find_package(Threads REQUIRED)
target_link_libraries(${PROJECT_NAME}
PRIVATE
daxa::daxa
gvox::gvox
glfw
)
target_include_directories(${PROJECT_NAME} PRIVATE
"${CMAKE_CURRENT_LIST_DIR}/src"
"${CMAKE_CURRENT_LIST_DIR}/include"
"${CMAKE_CURRENT_LIST_DIR}/src/gvox"
"${CMAKE_CURRENT_LIST_DIR}/src/containers"
"${CMAKE_CURRENT_LIST_DIR}/src/brushes"
)