mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 22:42:14 -07:00
Finally, CMake linting.
Took 11 minutes Took 4 minutes
This commit is contained in:
parent
ecfcc078c4
commit
33cd0098f8
16 changed files with 302 additions and 311 deletions
|
|
@ -24,43 +24,46 @@ set(HEADERS
|
|||
include/server/serverinfo_user_container.h
|
||||
)
|
||||
|
||||
if (Qt6_FOUND)
|
||||
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
elseif (Qt5_FOUND)
|
||||
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
endif ()
|
||||
if(Qt6_FOUND)
|
||||
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
elseif(Qt5_FOUND)
|
||||
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
||||
endif()
|
||||
|
||||
add_library(cockatrice_server STATIC
|
||||
src/game/server_abstract_participant.cpp
|
||||
src/game/server_arrow.cpp
|
||||
src/game/server_arrowtarget.cpp
|
||||
src/game/server_card.cpp
|
||||
src/game/server_cardzone.cpp
|
||||
src/game/server_counter.cpp
|
||||
src/game/server_game.cpp
|
||||
src/game/server_player.cpp
|
||||
src/game/server_spectator.cpp
|
||||
src/debug_pb_message.cpp
|
||||
src/get_pb_extension.cpp
|
||||
src/server.cpp
|
||||
src/server_abstractuserinterface.cpp
|
||||
src/server_database_interface.cpp
|
||||
src/server_protocolhandler.cpp
|
||||
src/server_remoteuserinterface.cpp
|
||||
src/server_response_containers.cpp
|
||||
src/server_room.cpp
|
||||
src/serverinfo_user_container.cpp
|
||||
${MOC_SOURCES}
|
||||
add_library(
|
||||
cockatrice_server STATIC
|
||||
${MOC_SOURCES}
|
||||
src/debug_pb_message.cpp
|
||||
src/game/server_abstract_participant.cpp
|
||||
src/game/server_arrow.cpp
|
||||
src/game/server_arrowtarget.cpp
|
||||
src/game/server_card.cpp
|
||||
src/game/server_cardzone.cpp
|
||||
src/game/server_counter.cpp
|
||||
src/game/server_game.cpp
|
||||
src/game/server_player.cpp
|
||||
src/game/server_spectator.cpp
|
||||
src/get_pb_extension.cpp
|
||||
src/server.cpp
|
||||
src/server_abstractuserinterface.cpp
|
||||
src/server_database_interface.cpp
|
||||
src/server_protocolhandler.cpp
|
||||
src/server_remoteuserinterface.cpp
|
||||
src/server_response_containers.cpp
|
||||
src/server_room.cpp
|
||||
src/serverinfo_user_container.cpp
|
||||
)
|
||||
|
||||
add_dependencies(cockatrice_server cockatrice_protocol_wrapper)
|
||||
|
||||
target_include_directories(cockatrice_server
|
||||
PUBLIC include
|
||||
PUBLIC ${CMAKE_SOURCE_DIR}/common
|
||||
target_include_directories(
|
||||
cockatrice_server
|
||||
PUBLIC include
|
||||
PUBLIC ${CMAKE_SOURCE_DIR}/common
|
||||
)
|
||||
|
||||
# Make cockatrice_server depend on cockatrice_protocol
|
||||
target_link_libraries(cockatrice_server
|
||||
PUBLIC cockatrice_common cockatrice_protocol_wrapper utility cockatrice_rng cockatrice_deck_list ${COCKATRICE_QT_MODULES}
|
||||
)
|
||||
target_link_libraries(
|
||||
cockatrice_server PUBLIC cockatrice_common cockatrice_protocol_wrapper utility cockatrice_rng cockatrice_deck_list
|
||||
${COCKATRICE_QT_MODULES}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue