-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (39 loc) · 1.4 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
46
47
48
49
50
51
52
cmake_minimum_required(VERSION 3.18)
project(vulkantest)
file(GLOB bolster_Sources CONFIGURE_DEPENDS "src/*.cpp")
file(GLOB bolster_C_Sources CONFIGURE_DEPENDS "src/*.c")
file(GLOB soloud_Sources
"d:/soloud20200207/src/core/*.cpp"
"d:/soloud20200207/src/backend/wasapi/*.cpp"
"d:/soloud20200207/src/audiosource/wav/*.cpp"
)
file(GLOB soloud_C_Sources
"d:/soloud20200207/src/audiosource/wav/*.c"
)
add_executable(vulkantest ${bolster_Sources} ${bolster_C_Sources} ${soloud_Sources} ${soloud_C_Sources})
include_directories(${PROJECT_SOURCE_DIR}/includes)
include_directories("d:/soloud20200207/include")
# Compile options
set(CMAKE_CXX_FLAGS "-std=c++17")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Other options
# GLFW
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
add_subdirectory("d:/glfw" "glfw")
# GLM
set(GLM_TEST_ENABLE OFF CACHE BOOL "" FORCE)
add_subdirectory("extern/glm" "glm")
# Includes
include_directories("extern")
include_directories("extern/vma/src")
include_directories("extern/tinygltf")
include_directories("extern/dds-ktx")
include_directories("extern/json")
# VULKAN
find_package(Vulkan REQUIRED)
target_compile_definitions(vulkantest PRIVATE VK_USE_PLATFORM_WIN32_KHR)
target_link_libraries(vulkantest Vulkan::Vulkan glfw glm)