Some project structure fixes

This commit is contained in:
Colin Sames
2026-04-03 19:54:39 +02:00
parent ac9d2f8648
commit a321f757f2
7 changed files with 35 additions and 36 deletions

View File

@@ -28,16 +28,6 @@ endif()
message(STATUS "SDL_TARGET resolved to: ${SDL_TARGET}")
# On Windows with dynamic linking, copy the DLL next to the executable
if(SDL_LINK_TYPE STREQUAL "dynamic" AND WIN32)
add_custom_target(copy_sdl_dll ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different
$<TARGET_FILE:SDL3::SDL3>
"${CMAKE_BINARY_DIR}/game/$<TARGET_FILE_NAME:SDL3::SDL3>"
COMMENT "Copying SDL3.dll to output directory"
)
endif()
# On Linux with dynamic linking, embed the absolute path to the prebuilt lib
# directory in the binary's RPATH. prebuilt/linux is built in-place on the
# Linux remote so this path is always valid there.