mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-05-10 19:21:42 +00:00
37 lines
1.1 KiB
CMake
37 lines
1.1 KiB
CMake
set(COMMON_SOURCES
|
|
"src/configuration/config.cpp"
|
|
"src/configuration/detection.cpp"
|
|
"src/helpers/errors.cpp"
|
|
"src/helpers/paths.cpp"
|
|
"src/vulkan/buffer.cpp"
|
|
"src/vulkan/command_buffer.cpp"
|
|
"src/vulkan/descriptor_pool.cpp"
|
|
"src/vulkan/descriptor_set.cpp"
|
|
"src/vulkan/fence.cpp"
|
|
"src/vulkan/image.cpp"
|
|
"src/vulkan/sampler.cpp"
|
|
"src/vulkan/semaphore.cpp"
|
|
"src/vulkan/shader.cpp"
|
|
"src/vulkan/timeline_semaphore.cpp"
|
|
"src/vulkan/vulkan.cpp")
|
|
|
|
add_library(lsfg-vk-common STATIC ${COMMON_SOURCES})
|
|
|
|
target_include_directories(lsfg-vk-common
|
|
PUBLIC include)
|
|
|
|
target_include_directories(lsfg-vk-common SYSTEM
|
|
PRIVATE thirdparty/include)
|
|
|
|
target_compile_options(lsfg-vk-common PUBLIC
|
|
-Wno-cast-function-type-strict # Vulkan function pointers
|
|
-Wno-shadow # Shadowing variables used to be common practice
|
|
)
|
|
|
|
if(LSFGVK_INSTALL_LIBRARIES)
|
|
install(TARGETS lsfg-vk-common
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
|
install(DIRECTORY "include/lsfg-vk-common/"
|
|
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/lsfg-vk-common"
|
|
FILES_MATCHING PATTERN "*.hpp")
|
|
endif()
|