This commit is contained in:
Martin Slachta
2026-07-18 14:31:15 +02:00
commit a04f0dc262
3343 changed files with 1140208 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
project(loft_base)
file(GLOB FILES
./src/*.cpp
./src/shaders/*.cpp
./src/io/*.cpp
./src/resources/*.cpp)
file(GLOB HEADERS
./include/*.h
./include/*.hpp
./include/shaders/*.h
./include/shaders/*.hpp
./include/resources/*.h
./include/resources/*.hpp
./include/io/*.h
./include/io/*.hpp
./include/debug/*.h
./include/debug/*.hpp
)
add_library(loft_base OBJECT ${FILES})
add_library(loft::base ALIAS loft_base)
target_sources(loft_base
PUBLIC FILE_SET HEADERS
BASE_DIRS include
FILES ${HEADERS})
set_target_properties(loft_base PROPERTIES POSITION_INDEPENDENT_CODE 1)
find_package(Vulkan REQUIRED)
target_link_libraries(${PROJECT_NAME}
PUBLIC
GPUOpen::VulkanMemoryAllocator
volk::volk
)
target_include_directories(${PROJECT_NAME}
PUBLIC
${PROJECT_SOURCE_DIR}/include/
)