Why? Open Source Qt 5 will stop receiving updates rather sooner than later so it's worth switching to Qt 6 to remain compatible with modern systems. Reviewed-on: http://vub63vv26q6v27xzv2dtcd25xumubshogm67yrpaz2rculqxs7jlfqad.onion/torzu-emu/torzu/pulls/130
35 lines
919 B
CMake
35 lines
919 B
CMake
# SPDX-FileCopyrightText: 2017 Citra Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
add_executable(yuzu-room
|
|
precompiled_headers.hpp
|
|
yuzu_room.cpp
|
|
yuzu_room.rc
|
|
)
|
|
|
|
target_link_libraries(yuzu-room PRIVATE common network)
|
|
if (ENABLE_WEB_SERVICE)
|
|
target_compile_definitions(yuzu-room PRIVATE -DENABLE_WEB_SERVICE)
|
|
target_link_libraries(yuzu-room PRIVATE web_service)
|
|
endif()
|
|
|
|
target_link_libraries(yuzu-room PRIVATE mbedtls mbedcrypto)
|
|
if (MSVC)
|
|
target_link_libraries(yuzu-room PRIVATE getopt)
|
|
endif()
|
|
target_link_libraries(yuzu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
|
|
|
if (TARGET getopt)
|
|
target_link_libraries(yuzu-room PRIVATE getopt)
|
|
endif()
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
install(TARGETS yuzu-room)
|
|
endif()
|
|
|
|
if (YUZU_USE_PRECOMPILED_HEADERS)
|
|
target_precompile_headers(yuzu-room PRIVATE precompiled_headers.hpp)
|
|
endif()
|
|
|
|
create_target_directory_groups(yuzu-room)
|