Skip to content

Commit

Permalink
Drop sdl3 requirement, use glfw3
Browse files Browse the repository at this point in the history
  • Loading branch information
petabyt committed Feb 1, 2025
1 parent b2112e6 commit fbc42a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ elseif(UNIX)
pkg_check_modules(LUA REQUIRED lua-5.3)
pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
pkg_check_modules(LIBXML2 REQUIRED libxml-2.0)
pkg_check_modules(SDL REQUIRED sdl3)
#pkg_check_modules(SDL REQUIRED sdl3)
set(PLATFORM_SOURCES unix.c ci.c)
if(NOT ANDROID)
include(hello_imgui.cmake)
Expand All @@ -34,7 +34,9 @@ elseif(UNIX)
endif()

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../lib/ ${CMAKE_CURRENT_BINARY_DIR}/lib)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../third_party/lua ${CMAKE_CURRENT_BINARY_DIR}/lua)
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../third_party/lua ${CMAKE_CURRENT_BINARY_DIR}/lua)

#list(TRANSFORM FILES_TO_TRANSLATE PREPEND ${CMAKE_CURRENT_SOURCE_DIR})

set(SOURCES
main.c jank.c backend.c imgui.cpp
Expand Down
4 changes: 3 additions & 1 deletion desktop/hello_imgui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ include(FetchContent)
set(HELLOIMGUI_BUILD_AUTOMATION_TEST OFF)
set(HELLOIMGUI_ADD_APP_WITH_INSTALL OFF)
set(HELLOIMGUI_USE_FREETYPE_PLUTOSVG OFF)
set(HELLOIMGUI_USE_SDL2 ON)
set(HELLOIMGUI_USE_SDL2 OFF)
set(HELLOIMGUI_USE_GLFW3 ON)
set(HELLOIMGUI_HAS_VULKAN ON)
FetchContent_Declare(hello_imgui GIT_REPOSITORY https://github.com/pthom/hello_imgui.git GIT_TAG master)
FetchContent_MakeAvailable(hello_imgui)

0 comments on commit fbc42a7

Please sign in to comment.