tomato/external/imgui/CMakeLists.txt
Green Sky c6688e47b3
Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
update cmake versions
2025-01-13 01:56:35 +01:00

50 lines
1.3 KiB
CMake

cmake_minimum_required(VERSION 3.14...3.24 FATAL_ERROR)
project(imgui C CXX)
add_library(imgui
imgui/imgui.h
imgui/imgui.cpp
imgui/imgui_draw.cpp
imgui/imgui_widgets.cpp
imgui/imgui_tables.cpp
imgui/imgui_demo.cpp
imgui/imstb_rectpack.h
imgui/imstb_textedit.h
imgui/imstb_truetype.h
imgui/misc/cpp/imgui_stdlib.h
imgui/misc/cpp/imgui_stdlib.cpp
)
target_compile_definitions(imgui PUBLIC IMGUI_USE_WCHAR32)
target_compile_features(imgui PUBLIC cxx_std_11)
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
target_include_directories(imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/imgui") # im sad
#add_library(imgui_backend_opengl3
#"imgui/backends/imgui_impl_opengl3.h"
#"imgui/backends/imgui_impl_opengl3.cpp"
#)
#target_link_libraries(imgui_backend_opengl3 PUBLIC imgui)
add_library(imgui_backend_sdlrenderer3
imgui/backends/imgui_impl_sdlrenderer3.h
imgui/backends/imgui_impl_sdlrenderer3.cpp
)
target_link_libraries(imgui_backend_sdlrenderer3 PUBLIC imgui SDL3::SDL3)
#add_library(imgui_backend_glfw
#"imgui/backends/imgui_impl_glfw.h"
#"imgui/backends/imgui_impl_glfw.cpp"
#)
#target_link_libraries(imgui_backend_glfw PUBLIC imgui glfw)
add_library(imgui_backend_sdl3
imgui/backends/imgui_impl_sdl3.h
imgui/backends/imgui_impl_sdl3.cpp
)
target_link_libraries(imgui_backend_sdl3 PUBLIC imgui SDL3::SDL3)