cmake_minimum_required(VERSION 3.6.0) project(asteroid-toolwatch VERSION 0.0.1 DESCRIPTION "An app for showing sensors data on AsteroidOS") find_package(ECM REQUIRED NO_MODULE) find_package(AsteroidApp REQUIRED) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ASTEROID_MODULE_PATH}) include(FeatureSummary) include(GNUInstallDirs) include(ECMFindQmlModule) include(AsteroidCMakeSettings) include(AsteroidTranslations) ecm_find_qmlmodule(QtSensors 5.3) add_subdirectory(src) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/asteroid-toolwatch.in ${CMAKE_BINARY_DIR}/asteroid-toolwatch @ONLY) install(PROGRAMS ${CMAKE_BINARY_DIR}/asteroid-toolwatch DESTINATION ${CMAKE_INSTALL_BINDIR}) build_translations(i18n) generate_desktop(${CMAKE_SOURCE_DIR} asteroid-toolwatch) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)