2023-07-23 21:08:50 +02:00
cmake_minimum_required ( VERSION 3.17.0 FATAL_ERROR )
2015-12-05 22:49:18 +01:00
2019-07-20 18:08:11 +02: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
a n g l e . h
l o c a t i o n . h
m a i n . h
)
set ( SRC_FILES
a n g l e . c p p
l o c a t i o n . c p p
m a i n . c p p
)
2016-06-14 00:47:07 +02:00
set ( DOC_FILES
R E A D M E . m d
)
2016-04-16 00:58:05 +02:00
# 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 )
2016-04-16 00:58:05 +02:00
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 )