Skip to content

Commit ef5b842

Browse files
committed
Only pull in project QML files
Otherwise we also grab and build QML files from fetchcontent dependencies.
1 parent bd325da commit ef5b842

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@ if (UNIX AND NOT APPLE)
2121
pkg_check_modules("${PKG}" REQUIRED IMPORTED_TARGET "${PKG}")
2222
endforeach()
2323
list(TRANSFORM PKGCONFIG_MODULES PREPEND "PkgConfig::")
24+
list(APPEND LINK_LIBS ${PKGCONFIG_MODULES})
2425
endif()
2526

2627
include(FetchContent)
2728
FetchContent_Declare(quartz GIT_REPOSITORY https://github.com/vimpostor/quartz.git GIT_TAG v0.9.1)
2829
FetchContent_MakeAvailable(quartz)
2930

30-
list(APPEND LINK_LIBS ${PKGCONFIG_MODULES})
31-
3231
include_directories("src" "src/Models")
3332
add_compile_definitions(BLOBDROP_VERSION="${PROJECT_VERSION}")
3433

3534
file(GLOB_RECURSE SRCS "src/*.cpp")
3635
file(GLOB_RECURSE HDRS "src/*.hpp")
37-
file(GLOB_RECURSE QMLS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "*.qml")
36+
file(GLOB_RECURSE QMLS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "src/qml/*.qml")
3837

3938
qt_add_resources(RESOURCES "${CMAKE_SOURCE_DIR}/icons.qrc")
4039

0 commit comments

Comments
 (0)