citra/src/dedicated_room/CMakeLists.txt

21 lines
606 B
CMake
Raw Normal View History

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
set(SRCS
citra-room.cpp
citra-room.rc
)
create_directory_groups(${SRCS})
add_executable(citra-room ${SRCS})
target_link_libraries(citra-room PRIVATE common core network)
target_link_libraries(citra-room PRIVATE glad)
if (MSVC)
target_link_libraries(citra-room PRIVATE getopt)
endif()
target_link_libraries(citra-room PRIVATE ${PLATFORM_LIBRARIES} SDL2 Threads::Threads)
if(UNIX AND NOT APPLE)
install(TARGETS citra-room RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
endif()