mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-16 06:40:03 +00:00
25 lines
720 B
CMake
25 lines
720 B
CMake
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
||
|
|
||
|
add_executable(yuzu-room
|
||
|
yuzu-room.cpp
|
||
|
yuzu-room.rc
|
||
|
)
|
||
|
|
||
|
create_target_directory_groups(yuzu-room)
|
||
|
|
||
|
target_link_libraries(yuzu-room PRIVATE common core 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)
|
||
|
if (MSVC)
|
||
|
target_link_libraries(yuzu-room PRIVATE getopt)
|
||
|
endif()
|
||
|
target_link_libraries(yuzu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
||
|
|
||
|
if(UNIX AND NOT APPLE)
|
||
|
install(TARGETS yuzu-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
||
|
endif()
|