2015-12-05 22:49:18 +01:00
cmake_minimum_required ( VERSION 3.1.0 FATAL_ERROR )
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
u t i l s . 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
u t i l s . c p p
)
2015-12-05 22:49:18 +01:00
# meta data
set ( META_PROJECT_NAME geocoordinatecalculator )
2015-12-08 08:33:39 +01:00
set ( META_APP_NAME "Geo coordinate calculator" )
2015-12-05 22:49:18 +01:00
set ( META_APP_AUTHOR "Martchus" )
set ( META_APP_URL "https://github.com/${META_APP_AUTHOR}/${META_PROJECT_NAME}" )
2015-12-08 08:33:39 +01:00
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." )
2015-12-05 22:49:18 +01:00
set ( META_VERSION_MAJOR 1 )
2015-12-27 22:36:33 +01:00
set ( META_VERSION_MINOR 1 )
2016-01-21 16:33:18 +01:00
set ( META_VERSION_PATCH 1 )
2015-12-08 08:33:39 +01:00
set ( META_APP_VERSION ${ META_VERSION_MAJOR } . ${ META_VERSION_MINOR } . ${ META_VERSION_PATCH } )
2015-12-05 22:49:18 +01:00
2016-04-16 00:58:05 +02:00
# find c++utilities
2016-04-25 22:22:12 +02:00
find_package ( c++utilities 3.3.0 REQUIRED )
2016-04-16 00:58:05 +02:00
use_cpp_utilities ( )
# include modules to apply configuration
include ( BasicConfig )
include ( WindowsResources )
include ( AppTarget )