geocoordinatecalculator/CMakeLists.txt

43 lines
1.2 KiB
CMake
Raw Permalink Normal View History

cmake_minimum_required(VERSION 3.17.0 FATAL_ERROR)
2015-12-05 22:49:18 +01:00
# set meta data
project(geocoordinatecalculator)
set(META_PROJECT_NAME ${PROJECT_NAME})
set(META_PROJECT_TYPE application)
set(META_APP_NAME "Geo coordinate calculator")
set(META_APP_AUTHOR "Martchus")
set(META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}")
set(META_APP_DESCRIPTION "Command line tool for basic calculations with geo coordinates such as format conversions and calculation of distance, bearing, mid point, destination and more")
set(META_VERSION_MAJOR 1)
set(META_VERSION_MINOR 1)
set(META_VERSION_PATCH 3)
set(META_APP_VERSION ${META_VERSION_MAJOR}.${META_VERSION_MINOR}.${META_VERSION_PATCH})
2015-12-08 08:33:39 +01:00
# add project files
set(HEADER_FILES
angle.h
location.h
main.h
)
set(SRC_FILES
angle.cpp
location.cpp
main.cpp
)
2016-06-14 00:47:07 +02:00
set(DOC_FILES
README.md
)
# find c++utilities
2019-03-14 17:59:30 +01:00
set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities")
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
use_cpp_utilities()
# include modules to apply configuration
include(BasicConfig)
include(WindowsResources)
include(AppTarget)
2016-07-04 23:30:21 +02:00
include(ShellCompletion)
2016-07-27 21:39:54 +02:00
include(ConfigHeader)