mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-01 17:18:59 +02:00
Lets you build ONLY the necessary targets to get a statically linked room executable. Only intended to be used on musl targets due to getaddrinfo et al. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3411 Reviewed-by: MaranBr <maranbr@eden-emu.dev>
18 lines
586 B
CMake
18 lines
586 B
CMake
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
add_executable(yuzu_room_standalone yuzu_room_standalone.cpp)
|
|
|
|
set_target_properties(yuzu_room_standalone PROPERTIES OUTPUT_NAME "eden-room")
|
|
|
|
target_link_libraries(yuzu_room_standalone PRIVATE yuzu-room)
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
install(TARGETS yuzu_room_standalone RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
endif()
|
|
|
|
if (YUZU_STATIC_ROOM)
|
|
target_link_options(yuzu_room_standalone PRIVATE "-static")
|
|
endif()
|
|
|
|
create_target_directory_groups(yuzu_room_standalone)
|