-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreference_CMakeLists.txt
More file actions
44 lines (35 loc) · 880 Bytes
/
reference_CMakeLists.txt
File metadata and controls
44 lines (35 loc) · 880 Bytes
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
# set cmake version
# set cmake cXX version
# set project name
cmake_minimum_required(VERSION 3.8)
set(CMAKE_CXX_STANDARD 20)
project(vulkan_rote_memory_test)
# find packages
find_package(Vulkan REQUIRED)
find_package(glfw3 3.3 REQUIRED)
find_package(glm REQUIRED)
# list global includes dirs
# list global link dirs
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${Vulkan_INCLUDE_DIRS}
"/opt/homebrew/include"
)
link_libraries(
Vulkan::Vulkan
"/opt/homebrew/lib/libglfw.3.3.dylib"
)
# add primary executables
add_executable(main main.cpp)
add_executable(test test.cpp)
# programmatically add example executables
foreach(NAME
window
instance
validation_layers
)
add_executable(
"setup_${NAME}"
${CMAKE_CURRENT_SOURCE_DIR}/src/examples/setup/${NAME}/run.cpp
)
endforeach ()