Pick up description from one place

This commit is contained in:
Roland Kaufmann 2013-02-06 21:01:55 +01:00
parent 66772d4819
commit 2f20314ffb
4 changed files with 6 additions and 3 deletions

View File

@ -6,6 +6,7 @@ set (opm-core_VERSION_MAJOR 1)
set (opm-core_VERSION_MINOR 0)
enable_language (C)
enable_language (CXX)
set (opm-core_DESCRIPTION "Open Porous Media Initiative Core Library")
# build debug by default
if (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)

View File

@ -22,6 +22,8 @@ function (configure_pc_file name source dest prefix libdir includedir)
unseparate_args (defs "" "${${name}_DEFINITIONS}")
# necessary to make these variables visible to configure_file
set (name "${PROJECT_NAME}")
set (description "${${name}_DESCRIPTION}")
set (target "${${name}_LIBRARY}")
set (major "${${name}_VERSION_MAJOR}")
set (minor "${${name}_VERSION_MINOR}")

View File

@ -1,4 +1,4 @@
# - Open Porous Media Initiative Core Library config mode
# - @opm-core_DESCRIPTION@ config mode
#
# Defines the following variables:
# opm-core_FOUND - true

View File

@ -5,8 +5,8 @@ CXX=@CMAKE_CXX_COMPILER@ @CXX_STD0X_FLAGS@ @OpenMP_CXX_FLAGS@
CC=@CMAKE_C_COMPILER@ @C_STD99_FLAGS@ @OpenMP_C_FLAGS@
DEPENDENCIES=
Name: OPM Core
Description: Open Porous Media Initiative Core Library @major@.@minor@
Name: @name@
Description: @description@ @major@.@minor@
Version: @major@.@minor@
URL: http://opm-project.org
Libs: -l@target@ @libs@