diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 15:40:31 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-04 15:40:31 +1000 |
| commit | 050ddf7c3e4ea6aa7a18087d17aee2a43781d0af (patch) | |
| tree | 58a93f727211aa79604891d6536b5e01b56ef795 /plugin/src/Caelestia/CMakeLists.txt | |
| parent | plugin/cim: use QtConcurrent (diff) | |
| download | caelestia-shell-050ddf7c3e4ea6aa7a18087d17aee2a43781d0af.tar.gz caelestia-shell-050ddf7c3e4ea6aa7a18087d17aee2a43781d0af.tar.bz2 caelestia-shell-050ddf7c3e4ea6aa7a18087d17aee2a43781d0af.zip | |
plugin: add qalculator
For launcher >calc instead of qalc proc
Diffstat (limited to 'plugin/src/Caelestia/CMakeLists.txt')
| -rw-r--r-- | plugin/src/Caelestia/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin/src/Caelestia/CMakeLists.txt b/plugin/src/Caelestia/CMakeLists.txt index d00247e..6461027 100644 --- a/plugin/src/Caelestia/CMakeLists.txt +++ b/plugin/src/Caelestia/CMakeLists.txt @@ -1,3 +1,6 @@ +find_package(PkgConfig REQUIRED) +pkg_check_modules(QALCULATE REQUIRED libqalculate) + qt_add_qml_module(caelestia URI Caelestia VERSION 0.1 @@ -5,6 +8,7 @@ qt_add_qml_module(caelestia cutils.hpp cutils.cpp cachingimagemanager.hpp cachingimagemanager.cpp filesystemmodel.hpp filesystemmodel.cpp + qalculator.hpp qalculator.cpp ) qt_query_qml_module(caelestia @@ -24,4 +28,5 @@ 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_link_libraries(caelestia PRIVATE Qt::Core Qt::Qml Qt::Gui Qt::Concurrent) +target_include_directories(caelestia SYSTEM PRIVATE ${QALCULATE_INCLUDE_DIRS}) +target_link_libraries(caelestia PRIVATE Qt::Core Qt::Qml Qt::Gui Qt::Concurrent ${QALCULATE_LIBRARIES}) |