mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -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>
31 lines
912 B
CMake
31 lines
912 B
CMake
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(HEADERS
|
|
card_database_model.h
|
|
card_database_display_model.h
|
|
card/card_completer_proxy_model.h
|
|
card/card_search_model.h
|
|
card_set/card_sets_model.h
|
|
token/token_display_model.h
|
|
token/token_edit_model.h
|
|
)
|
|
|
|
add_library(
|
|
libcockatrice_models_database STATIC
|
|
${HEADERS}
|
|
card_database_model.cpp
|
|
card_database_display_model.cpp
|
|
card/card_completer_proxy_model.cpp
|
|
card/card_search_model.cpp
|
|
card_set/card_sets_model.cpp
|
|
token/token_display_model.cpp
|
|
token/token_edit_model.cpp
|
|
)
|
|
|
|
target_include_directories(libcockatrice_models_database PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(libcockatrice_models_database PUBLIC libcockatrice_card libcockatrice_filters ${QT_CORE_MODULE})
|
|
|
|
target_precompile_headers(libcockatrice_models_database PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtcore_pch.h")
|