From 36d0683218949696d5563d9172593c58b2049792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Gro=C3=9F?= Date: Sun, 26 Nov 2023 02:11:20 +0100 Subject: [PATCH] tests: Link against quartz This was accidentally missed in 9ba15174979b82a769f3fb5aac268aaf743e4f26 and caused some build errors in the CI now. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8469e67..cba4e46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,11 @@ if (UNIX) list(TRANSFORM PKGCONFIG_MODULES PREPEND "PkgConfig::") endif() -list(APPEND LINK_LIBS ${PKGCONFIG_MODULES}) +include(FetchContent) +FetchContent_Declare(quartz GIT_REPOSITORY https://github.com/vimpostor/quartz.git GIT_TAG v0.1) +FetchContent_MakeAvailable(quartz) + +list(APPEND LINK_LIBS ${PKGCONFIG_MODULES} quartz quartzplugin) include_directories("src" "src/Models") add_compile_definitions(BLOBDROP_VERSION="${PROJECT_VERSION}") @@ -41,11 +45,7 @@ qt_add_executable(${PROJECT_NAME} ${SRCS} ${RESOURCES}) qt_add_qml_module(${PROJECT_NAME} URI "Backend" VERSION "${PROJECT_VERSION}" NO_RESOURCE_TARGET_PATH QML_FILES ${QMLS} SOURCES "src/Models/path_model.cpp") set_target_properties(${PROJECT_NAME} PROPERTIES QT_QMLCACHEGEN_ARGUMENTS "--only-bytecode") -include(FetchContent) -FetchContent_Declare(quartz GIT_REPOSITORY https://github.com/vimpostor/quartz.git GIT_TAG v0.1) -FetchContent_MakeAvailable(quartz) - -target_link_libraries(${PROJECT_NAME} PRIVATE ${LINK_LIBS} quartz quartzplugin) +target_link_libraries(${PROJECT_NAME} PRIVATE ${LINK_LIBS}) # install install(TARGETS ${PROJECT_NAME} RUNTIME)