summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: f03e8316dcaebf91c058073c0f1ba58e1e11b81a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.10.0)
project(healthd
    VERSION 1.0.0
    DESCRIPTION "A health tracker daemon for AsteroidOS"
)

find_package(ECM REQUIRED NO_MODULE)

set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)

find_package(Qt5 COMPONENTS Core DBus Qml Positioning Sensors REQUIRED)


add_executable(healthd
    healthd.cpp
    sensors.h
    sensors.cpp
)
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)