fix build failure

This commit is contained in:
RickyRister 2025-07-15 03:23:52 -07:00
parent 63b8540ea7
commit 9a8271ed35
3 changed files with 6 additions and 2 deletions

View file

@ -26,6 +26,9 @@ elseif(Qt5_FOUND)
)
endif()
# Include directories
include_directories(../common) # Required due to card_ref.h
# Build servatrice binary and link it
add_executable(dbconverter MACOSX_BUNDLE ${dbconverter_MOC_SRCS} ${dbconverter_SOURCES})

View file

@ -79,6 +79,7 @@ elseif(Qt5_FOUND)
endif()
include_directories(../cockatrice/src)
include_directories(../common)
# Libz is required to support zipped files
find_package(ZLIB)

View file

@ -49,8 +49,8 @@ if(NOT GTEST_FOUND)
add_dependencies(filter_string_test gtest)
endif()
target_link_libraries(carddatabase_test Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES})
target_link_libraries(filter_string_test Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES})
target_link_libraries(carddatabase_test cockatrice_common Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES})
target_link_libraries(filter_string_test cockatrice_common Threads::Threads ${GTEST_BOTH_LIBRARIES} ${TEST_QT_MODULES})
add_test(NAME carddatabase_test COMMAND carddatabase_test)
add_test(NAME filter_string_test COMMAND filter_string_test)