38 lines
749 B
CMake
38 lines
749 B
CMake
add_library(tanks-reborn-lib STATIC
|
|
game/engine.cpp
|
|
game/engine.hpp
|
|
game/level.cpp
|
|
game/level.hpp
|
|
game/model.cpp
|
|
game/model.hpp
|
|
|
|
render/context.cpp
|
|
render/context.hpp
|
|
render/renderer.cpp
|
|
render/renderer.hpp
|
|
render/shader_compiler.cpp
|
|
render/shader_compiler.hpp
|
|
|
|
ui/display.cpp
|
|
ui/display.hpp
|
|
ui/user_input.cpp
|
|
ui/user_input.hpp
|
|
)
|
|
target_compile_definitions(tanks-reborn-lib PUBLIC -DGLFW_INCLUDE_VULKAN -DGLM_ENABLE_EXPERIMENTAL)
|
|
target_link_libraries(tanks-reborn-lib PUBLIC
|
|
glfw
|
|
glm
|
|
vuk
|
|
vk-bootstrap
|
|
slang
|
|
EnTT::EnTT
|
|
fastgltf
|
|
vuk-extra-imgui-platform
|
|
)
|
|
target_include_directories(tanks-reborn-lib PUBLIC . ../external)
|
|
|
|
add_executable(tanks-reborn
|
|
main.cpp
|
|
)
|
|
target_link_libraries(tanks-reborn PUBLIC tanks-reborn-lib)
|