CMakeLists.txt 864 B

123456789101112131415161718192021222324252627282930
  1. # SPDX-FileCopyrightText: 2017 Citra Emulator Project & 2024 suyu Emulator Project
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. add_executable(suyu-room
  4. precompiled_headers.h
  5. suyu_room.cpp
  6. suyu_room.rc
  7. )
  8. target_link_libraries(suyu-room PRIVATE common network)
  9. if (ENABLE_WEB_SERVICE)
  10. target_compile_definitions(suyu-room PRIVATE -DENABLE_WEB_SERVICE)
  11. target_link_libraries(suyu-room PRIVATE web_service)
  12. endif()
  13. target_link_libraries(suyu-room PRIVATE mbedtls mbedcrypto)
  14. if (MSVC)
  15. target_link_libraries(suyu-room PRIVATE getopt)
  16. endif()
  17. target_link_libraries(suyu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
  18. if(UNIX AND NOT APPLE)
  19. install(TARGETS suyu-room)
  20. endif()
  21. if (SUYU_USE_PRECOMPILED_HEADERS)
  22. target_precompile_headers(suyu-room PRIVATE precompiled_headers.h)
  23. endif()
  24. create_target_directory_groups(suyu-room)