2017-10-31 09:13:21 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
|
2017-11-16 18:28:15 +00:00
|
|
|
add_executable(citra-room
|
2022-12-17 15:06:38 +00:00
|
|
|
precompiled_headers.h
|
2017-11-16 18:28:15 +00:00
|
|
|
citra-room.cpp
|
|
|
|
citra-room.rc
|
|
|
|
)
|
2017-10-31 09:13:21 +00:00
|
|
|
|
2017-11-16 18:28:15 +00:00
|
|
|
create_target_directory_groups(citra-room)
|
2017-10-31 09:13:21 +00:00
|
|
|
|
2023-04-28 20:02:53 +00:00
|
|
|
target_link_libraries(citra-room PRIVATE citra_common network)
|
2018-10-27 07:46:58 +00:00
|
|
|
if (ENABLE_WEB_SERVICE)
|
|
|
|
target_compile_definitions(citra-room PRIVATE -DENABLE_WEB_SERVICE)
|
|
|
|
target_link_libraries(citra-room PRIVATE web_service)
|
2023-04-21 17:09:40 +00:00
|
|
|
if (MSVC AND OPENSSL_DLL_DIR)
|
|
|
|
include(CopyCitraOpensslDeps)
|
|
|
|
copy_citra_openssl_deps(citra-room)
|
|
|
|
endif()
|
2018-10-27 07:46:58 +00:00
|
|
|
endif()
|
|
|
|
|
2020-08-20 19:54:01 +00:00
|
|
|
target_link_libraries(citra-room PRIVATE cryptopp)
|
2017-10-31 09:13:21 +00:00
|
|
|
if (MSVC)
|
|
|
|
target_link_libraries(citra-room PRIVATE getopt)
|
|
|
|
endif()
|
2018-04-06 19:27:47 +00:00
|
|
|
target_link_libraries(citra-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
2017-10-31 09:13:21 +00:00
|
|
|
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
install(TARGETS citra-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
|
|
endif()
|
2022-12-17 15:06:38 +00:00
|
|
|
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
|
|
target_precompile_headers(citra-room PRIVATE precompiled_headers.h)
|
|
|
|
endif()
|