#2 - Static linking & dependency reduction
This commit is contained in:
Vendored
+2
-4
@@ -3,10 +3,9 @@ project(imgui)
|
||||
file(GLOB FILES
|
||||
./*.cpp
|
||||
./backends/imgui_impl_vulkan.cpp
|
||||
./backends/imgui_impl_sdl2.cpp
|
||||
./backends/imgui_impl_sdl3.cpp
|
||||
)
|
||||
|
||||
find_package(SDL2 QUIET)
|
||||
find_package(Vulkan REQUIRED)
|
||||
|
||||
add_library(${PROJECT_NAME} OBJECT ${FILES})
|
||||
@@ -21,11 +20,10 @@ target_include_directories(${PROJECT_NAME}
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
volk::volk
|
||||
${SDL2_LIBRARIES}
|
||||
sdl::sdl
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
${volk_INCLUDE_DIRS}
|
||||
${SDL2_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user