Set project() on top-level
See https://github.com/Martchus/cpp-utilities/pull/15
This commit is contained in:
parent
245a5f6803
commit
923c01bc92
|
@ -1,5 +1,18 @@
|
||||||
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
|
||||||
|
|
||||||
|
# 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})
|
||||||
|
|
||||||
# add project files
|
# add project files
|
||||||
set(HEADER_FILES
|
set(HEADER_FILES
|
||||||
angle.h
|
angle.h
|
||||||
|
@ -16,18 +29,6 @@ set(DOC_FILES
|
||||||
README.md
|
README.md
|
||||||
)
|
)
|
||||||
|
|
||||||
# meta data
|
|
||||||
set(META_PROJECT_NAME geocoordinatecalculator)
|
|
||||||
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})
|
|
||||||
|
|
||||||
# find c++utilities
|
# find c++utilities
|
||||||
set(CONFIGURATION_PACKAGE_SUFFIX "" CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities")
|
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)
|
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.0.0 REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue