-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
44 lines (37 loc) · 900 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
43
cmake_minimum_required(VERSION 3.5)
project(odtdungeon LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include_directories(src .)
file(GLOB source_files CONFIGURE_DEPENDS
"README.md"
"src/*.h"
"src/*.cpp"
"src/*/*.cpp"
"src/*/*.h"
"src/*/*/*.cpp"
"src/*/*/*.h"
#"src/vulkan/rasterizer/*.glsl"
#"src/vulkan/raycompute/*.glsl"
#"src/vulkan/raytracer/shader/*"
"src/vulkan/raytracer.glsl/*"
#"src/vulkan/raytracer/sensorshader/*"
)
include_directories(
external/JoltPhysics
)
add_executable(odtdungeon ${source_files})
target_compile_definitions(odtdungeon PUBLIC "$<$<CONFIG:DEBUG>:ODTDEBUG>"
_DEBUG
ODTJOLT
JPH_PROFILE_ENABLED # auch im release
JPH_DEBUG_RENDERER
)
target_link_libraries(odtdungeon
glfw
#pthread
vulkan
assimp
${CMAKE_CURRENT_SOURCE_DIR}/external/JoltPhysics/Build/Linux_Debug/libJolt.a
SDL2
)