mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-05 13:35:09 +00:00
Examples: SDL2/Vulkan: Add a CMakeLists.txt
This commit is contained in:
parent
4fab72b40e
commit
193f06a7df
1 changed files with 26 additions and 0 deletions
26
examples/example_sdl2_vulkan/CMakeLists.txt
Normal file
26
examples/example_sdl2_vulkan/CMakeLists.txt
Normal file
|
@ -0,0 +1,26 @@
|
|||
cmake_minimum_required(VERSION 3.25)
|
||||
project(example_sdl2_vulkan)
|
||||
|
||||
find_package(SDL2 REQUIRED CONFIG REQUIRED COMPONENTS SDL2)
|
||||
find_package(Vulkan REQUIRED)
|
||||
|
||||
set(IMGUI_DIR ../../)
|
||||
|
||||
add_executable(example_sdl2_vulkan
|
||||
main.cpp
|
||||
${IMGUI_DIR}/backends/imgui_impl_sdl2.cpp
|
||||
${IMGUI_DIR}/backends/imgui_impl_vulkan.cpp
|
||||
${IMGUI_DIR}/imgui.cpp
|
||||
${IMGUI_DIR}/imgui_draw.cpp
|
||||
${IMGUI_DIR}/imgui_demo.cpp
|
||||
${IMGUI_DIR}/imgui_tables.cpp
|
||||
${IMGUI_DIR}/imgui_widgets.cpp)
|
||||
|
||||
target_compile_definitions(example_sdl2_vulkan
|
||||
PRIVATE ImTextureID=ImU64)
|
||||
|
||||
target_include_directories(example_sdl2_vulkan
|
||||
PRIVATE ${IMGUI_DIR} ${IMGUI_DIR}/backends)
|
||||
|
||||
target_link_libraries(example_sdl2_vulkan
|
||||
PRIVATE SDL2::SDL2 Vulkan::Vulkan)
|
Loading…
Add table
Reference in a new issue