diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-03-19 11:14:04 +0000 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-05-26 00:32:20 +0100 |
commit | ec42177b24b47ba68b3ae49634c942c76a9f92d4 (patch) | |
tree | b0b85601ef46f4e0bd8bb94f81eb89faaf8da5f1 /CMakeLists.txt | |
parent | bfe0c3f7a03c53cff7a4050a42f14eaa210364f8 (diff) |
Restructure to split to daemon and qml accessor
- add separate subdirs for daemon and qml
- add some generic qml boilerplate
- add a really lazy 'last value' loader implementation
- license the project as gplv3 (add copyright notices and license text)
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c4c22c1..881247f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,27 +5,19 @@ project(sensorlogd ) find_package(ECM REQUIRED NO_MODULE) +find_package(AsteroidApp REQUIRED) -set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake) +set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH}) -find_package(Qt5 COMPONENTS Core DBus Qml Positioning Sensors REQUIRED) +include(FeatureSummary) +include(GNUInstallDirs) +include(ECMFindQmlModule) +include(ECMGeneratePkgConfigFile) +include(AsteroidCMakeSettings) +include(AsteroidCMakeSettings) -add_executable(healthd - sensorlogd.cpp - logger.cpp - logger.h - sensorPlugins/stepCounter.cpp - sensorPlugins/stepCounter.h - sensorPlugins/heartrateSensor.cpp - sensorPlugins/heartrateSensor.h -) -set_target_properties(healthd PROPERTIES AUTOMOC ON) -#add_compile_definitions(Q_DECLARE_PRIVATE_SUPPORTS_UNIQUE_PTR=${Q_DECLARE_PRIVATE_SUPPORTS_UNIQUE_PTR}) -target_link_libraries(healthd PRIVATE Qt5::Core Qt5::DBus Qt5::Qml Qt5::Positioning Qt5::Sensors) -install(TARGETS healthd) -# configure_file( -# "org.asteroid.steroid.trackrecorder.service.in" -# "org.asteroid.steroid.trackrecorder.service" -# ) -# install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.asteroid.steroid.trackrecorder.service DESTINATION /usr/lib/systemd/user) +find_package(Qt5 COMPONENTS Core DBus Qml Positioning Sensors REQUIRED) + +add_subdirectory(daemon) +add_subdirectory(qmlplugin) |