Files
briaguyaandGitHub 4869a4748b fetch imgui (#537)
* initial attempt

* forgot to add linux to the deps

* little more cleanup

* cleanup

* remove imgui

* include dirs

* windows

* metal stuff

* metal

* windows

* try just moving this for now

* makeavailable is working now
2024-04-30 22:11:46 -04:00

28 lines
824 B
CMake

if (USE_AUTO_VCPKG)
include(cmake/automate-vcpkg.cmake)
if ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "Win32")
set(VCPKG_TRIPLET x86-windows-static)
set(VCPKG_TARGET_TRIPLET x86-windows-static)
elseif ("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
set(VCPKG_TRIPLET x64-windows-static)
set(VCPKG_TARGET_TRIPLET x64-windows-static)
endif()
vcpkg_bootstrap()
vcpkg_install_packages(zlib bzip2 sdl2 glew libzip nlohmann-json tinyxml2 spdlog)
endif()
#=================== ImGui ===================
target_sources(ImGui
PRIVATE
${imgui_SOURCE_DIR}/backends/imgui_impl_dx11.cpp
${imgui_SOURCE_DIR}/backends/imgui_impl_win32.cpp
)
find_package(SDL2 CONFIG REQUIRED)
target_link_libraries(ImGui PUBLIC SDL2::SDL2 SDL2::SDL2main)
find_package(GLEW REQUIRED)
target_link_libraries(ImGui PUBLIC opengl32 GLEW::GLEW)