summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt32
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)