mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 10:56:55 -05:00
Some checks failed
Build Desktop / Configure (push) Has been cancelled
Build Docker Image / amd64 & arm64 (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, 13) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 11) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Debian, DEB, skip, 12) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, 42) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Fedora, RPM, skip, 41) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, 24.04) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (Ubuntu, DEB, skip, 22.04) (push) Has been cancelled
Build Desktop / ${{matrix.distro}} ${{matrix.version}} (yes, Arch, skip) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-14, Apple, 14, Release, 15.4) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-15, Apple, 15, Release, 16.4) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (1, macos-15-intel, 13, Intel, 13, Release, 16.4) (push) Has been cancelled
Build Desktop / macOS ${{matrix.target}}${{ matrix.soc == 'Intel' && ' Intel' || '' }}${{ matrix.type == 'Debug' && ' Debug' || '' }} (macos-15, Apple, 15, Debug, 16.4) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, 5.15.*, 7) (push) Has been cancelled
Build Desktop / Windows ${{matrix.target}} (msvc2019_64, qtimageformats qtmultimedia qtwebsockets, 6.6.*, 10) (push) Has been cancelled
* Move logger and key signals from libcockatrice_utility to Cockatrice. Took 9 minutes * Only link Qt::Core instead of COCKATRICE_QT_MODULES to libraries, if possible. Took 2 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
57 lines
1.8 KiB
CMake
57 lines
1.8 KiB
CMake
set(CMAKE_AUTOMOC ON)
|
|
set(CMAKE_AUTOUIC ON)
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(HEADERS
|
|
libcockatrice/card/card_info.h
|
|
libcockatrice/card/card_info_comparator.h
|
|
libcockatrice/card/database/card_database.h
|
|
libcockatrice/card/database/card_database_loader.h
|
|
libcockatrice/card/database/card_database_manager.h
|
|
libcockatrice/card/database/card_database_querier.h
|
|
libcockatrice/card/database/parser/card_database_parser.h
|
|
libcockatrice/card/database/parser/cockatrice_xml_3.h
|
|
libcockatrice/card/database/parser/cockatrice_xml_4.h
|
|
libcockatrice/card/printing/exact_card.h
|
|
libcockatrice/card/printing/printing_info.h
|
|
libcockatrice/card/set/card_set.h
|
|
libcockatrice/card/relation/card_relation.h
|
|
)
|
|
|
|
if(Qt6_FOUND)
|
|
qt6_wrap_cpp(MOC_SOURCES ${HEADERS})
|
|
elseif(Qt5_FOUND)
|
|
qt5_wrap_cpp(MOC_SOURCES ${HEADERS})
|
|
endif()
|
|
|
|
add_library(
|
|
libcockatrice_card STATIC
|
|
${MOC_SOURCES}
|
|
libcockatrice/card/card_info.cpp
|
|
libcockatrice/card/card_info_comparator.cpp
|
|
libcockatrice/card/database/card_database.cpp
|
|
libcockatrice/card/database/card_database_loader.cpp
|
|
libcockatrice/card/database/card_database_manager.cpp
|
|
libcockatrice/card/database/card_database_querier.cpp
|
|
libcockatrice/card/database/parser/card_database_parser.cpp
|
|
libcockatrice/card/database/parser/cockatrice_xml_3.cpp
|
|
libcockatrice/card/database/parser/cockatrice_xml_4.cpp
|
|
libcockatrice/card/printing/exact_card.cpp
|
|
libcockatrice/card/printing/printing_info.cpp
|
|
libcockatrice/card/relation/card_relation.cpp
|
|
libcockatrice/card/set/card_set.cpp
|
|
libcockatrice/card/set/card_set_list.cpp
|
|
)
|
|
|
|
target_include_directories(
|
|
libcockatrice_card
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
PUBLIC ${CMAKE_SOURCE_DIR}/cockatrice/src/filters
|
|
)
|
|
|
|
target_link_libraries(
|
|
libcockatrice_card
|
|
PUBLIC libcockatrice_settings
|
|
PUBLIC ${QT_CORE_MODULE}
|
|
)
|