Skip to content

Commit

Permalink
tests: Link against quartz
Browse files Browse the repository at this point in the history
This was accidentally missed in 9ba1517
and caused some build errors in the CI now.
  • Loading branch information
vimpostor committed Nov 26, 2023
1 parent 63e8c1e commit 36d0683
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand All @@ -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)
Expand Down

0 comments on commit 36d0683

Please sign in to comment.