Skip to content

Commit

Permalink
GLFW -> SDL3
Browse files Browse the repository at this point in the history
  • Loading branch information
Atraxus committed Feb 24, 2025
1 parent 2183fd1 commit 22164be
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
[submodule "Extern/imgui"]
path = Extern/imgui
url = https://github.com/ocornut/imgui
[submodule "Extern/glfw"]
path = Extern/glfw
url = https://github.com/glfw/glfw
[submodule "Extern/stb"]
path = Extern/stb
url = https://github.com/nothings/stb
Expand All @@ -27,4 +24,7 @@
url = https://github.com/alpaka-group/alpaka.git
[submodule "Extern/portable-file-dialogs"]
path = Extern/portable-file-dialogs
url = https://github.com/samhocevar/portable-file-dialogs.git
url = https://github.com/samhocevar/portable-file-dialogs.git
[submodule "Extern/SDL"]
path = Extern/SDL
url = https://github.com/libsdl-org/SDL
1 change: 1 addition & 0 deletions Extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ else()
endif()

add_subdirectory(alpaka)
add_subdirectory(SDL)
1 change: 1 addition & 0 deletions Extern/SDL
Submodule SDL added at b5c3ea
1 change: 0 additions & 1 deletion Extern/glfw
Submodule glfw deleted from 7b6aea
6 changes: 2 additions & 4 deletions Intern/rayx-ui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ if(Vulkan_FOUND)
project(rayx-ui VERSION ${RAYX_VERSION})

set(IMGUI_DIR ../../Extern/imgui/)
set(GLFW_DIR ../../Extern/glfw/)
set(GLM_DIR ../../Extern/glm/)
set(STB_DIR ../../Extern/stb/)
add_subdirectory(${GLFW_DIR} binary_dir EXCLUDE_FROM_ALL)

file(GLOB_RECURSE SOURCE ${PROJECT_SOURCE_DIR}/src/*.cpp)
set(IMGUI_SOURCES ${IMGUI_DIR}/backends/imgui_impl_glfw.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)
set(IMGUI_SOURCES ${IMGUI_DIR}/backends/imgui_impl_sdl3.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)

add_executable(${PROJECT_NAME} ${SOURCE} ${IMGUI_SOURCES})

Expand Down Expand Up @@ -91,7 +89,7 @@ if(Vulkan_FOUND)
# ----------------------

# ---- Dependencies ----
target_link_libraries(${PROJECT_NAME} PRIVATE rayx-core glfw CLI11::CLI11 Vulkan::Vulkan portable_file_dialogs)
target_link_libraries(${PROJECT_NAME} PRIVATE rayx-core glfw CLI11::CLI11 Vulkan::Vulkan portable_file_dialogs SDL3::SDL3)
target_include_directories(${PROJECT_NAME} SYSTEM PRIVATE
${GLFW_DIR}/include
${GLFW_DIR}/deps
Expand Down

0 comments on commit 22164be

Please sign in to comment.