suyu/src/dedicated_room/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
864 B
CMake
Raw Normal View History

2024-03-08 09:06:48 +00:00
# SPDX-FileCopyrightText: 2017 Citra Emulator Project & 2024 suyu Emulator Project
2022-07-30 18:16:47 +00:00
# SPDX-License-Identifier: GPL-2.0-or-later
2024-03-08 09:06:48 +00:00
add_executable(suyu-room
2022-11-22 23:38:23 +00:00
precompiled_headers.h
2024-03-08 09:06:48 +00:00
suyu_room.cpp
suyu_room.rc
2022-07-30 03:55:29 +00:00
)
2024-03-08 09:06:48 +00:00
target_link_libraries(suyu-room PRIVATE common network)
2022-07-30 03:55:29 +00:00
if (ENABLE_WEB_SERVICE)
2024-03-08 09:06:48 +00:00
target_compile_definitions(suyu-room PRIVATE -DENABLE_WEB_SERVICE)
target_link_libraries(suyu-room PRIVATE web_service)
2022-07-30 03:55:29 +00:00
endif()
2024-03-08 09:06:48 +00:00
target_link_libraries(suyu-room PRIVATE mbedtls mbedcrypto)
2022-07-30 03:55:29 +00:00
if (MSVC)
2024-03-08 09:06:48 +00:00
target_link_libraries(suyu-room PRIVATE getopt)
2022-07-30 03:55:29 +00:00
endif()
2024-03-08 09:06:48 +00:00
target_link_libraries(suyu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
2022-07-30 03:55:29 +00:00
if(UNIX AND NOT APPLE)
2024-03-08 09:06:48 +00:00
install(TARGETS suyu-room)
2022-07-30 03:55:29 +00:00
endif()
2022-11-22 23:38:23 +00:00
2024-03-08 09:06:48 +00:00
if (SUYU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(suyu-room PRIVATE precompiled_headers.h)
2022-11-22 23:38:23 +00:00
endif()
2024-03-08 09:06:48 +00:00
create_target_directory_groups(suyu-room)