22 lines
443 B
CMake
22 lines
443 B
CMake
file(GLOB_RECURSE ENGINE_SOURCES
|
|
src/*.cpp
|
|
)
|
|
|
|
# 编译成静态库
|
|
add_library(Engine STATIC ${ENGINE_SOURCES})
|
|
|
|
|
|
target_include_directories(Engine PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
# 链接第三方库
|
|
target_link_libraries(Engine PUBLIC
|
|
glfw
|
|
Vulkan::Vulkan
|
|
spdlog::spdlog
|
|
stb
|
|
assimp::assimp
|
|
)
|
|
|
|
target_compile_definitions(Engine PRIVATE VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1) |