mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 01:23:24 -08:00
The root already set CMAKE_AUTOMOC; add CMAKE_AUTOUIC and CMAKE_AUTORCC next to it and drop the per-directory copies from 18 CMakeLists files. These variables are inherited by the subdirectories, so the duplicates never changed anything. qt_standard_project_setup is not used: besides the AUTO* variables it sets CMAKE_RUNTIME_OUTPUT_DIRECTORY on Windows, which breaks the install(DIRECTORY "$<TARGET_FILE_DIR:...>") copies and the per-app symbol paths, and appends to CMAKE_INSTALL_RPATH on Linux. Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
43 lines
1.8 KiB
CMake
43 lines
1.8 KiB
CMake
set(HEADERS
|
|
libcockatrice/deck_list/tree/abstract_deck_list_card_node.h
|
|
libcockatrice/deck_list/tree/abstract_deck_list_node.h
|
|
libcockatrice/deck_list/tree/deck_list_card_node.h
|
|
libcockatrice/deck_list/tree/inner_deck_list_node.h
|
|
libcockatrice/deck_list/deck_file_format.h
|
|
libcockatrice/deck_list/deck_list.h
|
|
libcockatrice/deck_list/deck_list_history_manager.h
|
|
libcockatrice/deck_list/deck_list_node_tree.h
|
|
libcockatrice/deck_list/deck_list_memento.h
|
|
libcockatrice/deck_list/deck_list_plain_text_parser.h
|
|
libcockatrice/deck_list/loaded_deck.h
|
|
libcockatrice/deck_list/playmat_resolver.h
|
|
libcockatrice/deck_list/sideboard_plan.h
|
|
)
|
|
|
|
add_library(
|
|
libcockatrice_deck_list STATIC
|
|
${HEADERS}
|
|
libcockatrice/deck_list/tree/abstract_deck_list_card_node.cpp
|
|
libcockatrice/deck_list/tree/abstract_deck_list_node.cpp
|
|
libcockatrice/deck_list/tree/deck_list_card_node.cpp
|
|
libcockatrice/deck_list/tree/inner_deck_list_node.cpp
|
|
libcockatrice/deck_list/deck_file_format.cpp
|
|
libcockatrice/deck_list/deck_list.cpp
|
|
libcockatrice/deck_list/deck_list_history_manager.cpp
|
|
libcockatrice/deck_list/deck_list_node_tree.cpp
|
|
libcockatrice/deck_list/deck_list_plain_text_parser.cpp
|
|
libcockatrice/deck_list/loaded_deck.cpp
|
|
libcockatrice/deck_list/playmat_resolver.cpp
|
|
libcockatrice/deck_list/sideboard_plan.cpp
|
|
)
|
|
|
|
add_dependencies(libcockatrice_deck_list libcockatrice_protocol)
|
|
|
|
target_include_directories(libcockatrice_deck_list PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
target_link_libraries(
|
|
libcockatrice_deck_list PUBLIC libcockatrice_interfaces libcockatrice_protocol libcockatrice_utility
|
|
${QT_CORE_MODULE}
|
|
)
|
|
|
|
target_precompile_headers(libcockatrice_deck_list PRIVATE "${CMAKE_SOURCE_DIR}/cmake/pch/qtcore_pch.h")
|