CMakeLists.txt 835 B

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