34 lines
1003 B
CMake
34 lines
1003 B
CMake
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
|
|
|
|
add_executable(citra-room
|
|
precompiled_headers.h
|
|
citra-room.cpp
|
|
citra-room.rc
|
|
)
|
|
|
|
create_target_directory_groups(citra-room)
|
|
|
|
target_link_libraries(citra-room PRIVATE citra_common network)
|
|
if (ENABLE_WEB_SERVICE)
|
|
target_compile_definitions(citra-room PRIVATE -DENABLE_WEB_SERVICE)
|
|
target_link_libraries(citra-room PRIVATE web_service)
|
|
if (MSVC AND OPENSSL_DLL_DIR)
|
|
include(CopyCitraOpensslDeps)
|
|
copy_citra_openssl_deps(citra-room)
|
|
endif()
|
|
endif()
|
|
|
|
target_link_libraries(citra-room PRIVATE cryptopp)
|
|
if (MSVC)
|
|
target_link_libraries(citra-room PRIVATE getopt)
|
|
endif()
|
|
target_link_libraries(citra-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
install(TARGETS citra-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
|
|
endif()
|
|
|
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
|
target_precompile_headers(citra-room PRIVATE precompiled_headers.h)
|
|
endif()
|