Some project structure fixes
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user