summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-07 20:33:26 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-07 20:33:26 +1000
commit68ec55e92edd774eee7256dbd94067c7c1eafa17 (patch)
tree41ce05148b5ec8682ac29755d6feeafa9263942e /plugin/src/Caelestia
parentplugin/ap: don't load empty chunks (diff)
downloadcaelestia-shell-68ec55e92edd774eee7256dbd94067c7c1eafa17.tar.gz
caelestia-shell-68ec55e92edd774eee7256dbd94067c7c1eafa17.tar.bz2
caelestia-shell-68ec55e92edd774eee7256dbd94067c7c1eafa17.zip
plugin/cmake: use pkgconfig targets
Diffstat (limited to 'plugin/src/Caelestia')
-rw-r--r--plugin/src/Caelestia/CMakeLists.txt11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugin/src/Caelestia/CMakeLists.txt b/plugin/src/Caelestia/CMakeLists.txt
index c1f3d15..3618eb8 100644
--- a/plugin/src/Caelestia/CMakeLists.txt
+++ b/plugin/src/Caelestia/CMakeLists.txt
@@ -1,7 +1,7 @@
find_package(PkgConfig REQUIRED)
-pkg_check_modules(QALCULATE REQUIRED libqalculate)
-pkg_check_modules(AUBIO REQUIRED aubio)
-pkg_check_modules(CAVA REQUIRED cava)
+pkg_check_modules(Qalculate IMPORTED_TARGET libqalculate REQUIRED)
+pkg_check_modules(Aubio IMPORTED_TARGET aubio REQUIRED)
+pkg_check_modules(Cava IMPORTED_TARGET cava REQUIRED)
qt_add_qml_module(caelestia
URI Caelestia
@@ -35,10 +35,7 @@ install(TARGETS "${module_plugin_target}" LIBRARY DESTINATION "${module_dir}" RU
install(FILES "${module_qmldir}" DESTINATION "${module_dir}")
install(FILES "${module_typeinfo}" DESTINATION "${module_dir}")
-target_include_directories(caelestia SYSTEM PRIVATE
- ${QALCULATE_INCLUDE_DIRS} ${AUBIO_INCLUDE_DIRS} ${CAVA_INCLUDE_DIRS}
-)
target_link_libraries(caelestia PRIVATE
Qt::Core Qt::Qml Qt::Gui Qt::Concurrent Qt::Multimedia
- ${QALCULATE_LIBRARIES} ${AUBIO_LIBRARIES} ${CAVA_LIBRARIES}
+ PkgConfig::Qalculate PkgConfig::Aubio PkgConfig::Cava
)