mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
The 13 libraries using qt6_wrap_cpp(MOC_SOURCES ${HEADERS}) listed their\nheaders twice and depended on a generated source list. Add the headers to the\ntarget sources directly and delete the qt6_wrap_cpp call; AUTOMOC scans them\nand generates the same moc output.\n\nThe change exposed that server_card_counter_test never defined the rng global\nthat the server remote library references; every sibling server test does.\nGive the test the same definition so the target links.\n\nVerification: full client, Oracle, server and test build passed.
Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
33 lines
1.7 KiB
CMake
33 lines
1.7 KiB
CMake
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(HEADERS
|
|
libcockatrice/interfaces/interface_cache_storage_settings_provider.h
|
|
libcockatrice/interfaces/interface_card_database_path_provider.h
|
|
libcockatrice/interfaces/interface_card_preference_provider.h
|
|
libcockatrice/interfaces/interface_card_set_priority_controller.h
|
|
libcockatrice/interfaces/interface_cards_display_settings_provider.h
|
|
libcockatrice/interfaces/interface_chat_settings_provider.h
|
|
libcockatrice/interfaces/interface_deck_editor_settings_provider.h
|
|
libcockatrice/interfaces/interface_game_settings_provider.h
|
|
libcockatrice/interfaces/interface_interface_settings_provider.h
|
|
libcockatrice/interfaces/interface_network_settings_provider.h
|
|
libcockatrice/interfaces/interface_paths_settings_provider.h
|
|
libcockatrice/interfaces/interface_personal_settings_provider.h
|
|
libcockatrice/interfaces/interface_sound_settings_provider.h
|
|
libcockatrice/interfaces/interface_tabs_settings_provider.h
|
|
libcockatrice/interfaces/interface_updates_settings_provider.h
|
|
libcockatrice/interfaces/interface_visual_deck_storage_settings_provider.h
|
|
libcockatrice/interfaces/noop_card_database_path_provider.h
|
|
libcockatrice/interfaces/noop_card_preference_provider.h
|
|
libcockatrice/interfaces/noop_card_set_priority_controller.h
|
|
)
|
|
|
|
add_library(libcockatrice_interfaces STATIC ${HEADERS})
|
|
|
|
target_include_directories(libcockatrice_interfaces PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(libcockatrice_interfaces PUBLIC libcockatrice_utility ${QT_CORE_MODULE})
|
|
|
|
target_precompile_headers(libcockatrice_interfaces PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtcore_pch.h")
|