-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (24 loc) · 866 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (24 loc) · 866 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
# NVVK contains Vulkan helpers.
set(LIB_NAME nvvk)
# Collect all source files in the utils directory
file(GLOB LIB_SOURCES "*.cpp" "*.hpp")
source_group("Source Files" FILES ${LIB_SOURCES})
# Define the utils library
add_library(${LIB_NAME} STATIC ${LIB_SOURCES})
# All libraries use nvpro_core2 as their include root
cmake_path(GET CMAKE_CURRENT_LIST_DIR PARENT_PATH PARENT_DIR)
target_include_directories(${LIB_NAME} PUBLIC ${PARENT_DIR})
target_link_libraries(
${LIB_NAME}
PUBLIC nvutils
glm # Math library
volk # The Vulkan loader
vma # Vulkan Memory Allocator
fmt # Formatting library
offsetAllocator # OffsetAllocator library
)
target_precompile_headers(${LIB_NAME} PRIVATE
<filesystem>
)
add_library(nvpro2::${LIB_NAME} ALIAS ${LIB_NAME})
set_property(TARGET ${LIB_NAME} PROPERTY FOLDER "nvpro_core2")