cmake_minimum_required(VERSION 3.20) project(asteroid-health VERSION 0.0.1 DESCRIPTION "Graphical interface for asteroid-sensorlogd") 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) add_subdirectory(src) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/asteroid-health.in ${CMAKE_BINARY_DIR}/asteroid-health @ONLY) install(PROGRAMS ${CMAKE_BINARY_DIR}/asteroid-health DESTINATION ${CMAKE_INSTALL_BINDIR}) generate_desktop(${CMAKE_SOURCE_DIR} asteroid-health) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) set(CPACK_GENERATOR "DEB") string(TOLOWER "${CMAKE_PROJECT_NAME}" lcproject_name) set(CPACK_DEBIAN_FILE_NAME "${lcproject_name}-${CMAKE_PROJECT_VERSION}.ipk") set(CPACK_STRIP_FILES TRUE) set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE armv7vehf-neon) if (NOT CPACK_PACKAGE_CONTACT) set(CPACK_PACKAGE_CONTACT dodoradio@outlook.com) endif() include(CPack)