summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-27 03:37:51 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-27 03:37:51 -0500
commit5e4b4371800526bccacadd1bcc478410b59a7a69 (patch)
tree3f36c77f674a49ae9d5ac891f25d9787380f5eee /modules/TDEMacros.cmake
parent836cbcaead88584a141c7c715128f5243661953a (diff)
downloadtde-cmake-5e4b4371800526bccacadd1bcc478410b59a7a69.tar.gz
tde-cmake-5e4b4371800526bccacadd1bcc478410b59a7a69.zip
Fill in SCM metadata if present
Properly set library metadata
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake54
1 files changed, 54 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 500ebaa..662ec94 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -537,6 +537,21 @@ macro( tde_add_library _arg_target )
set( _shouldnotlink no )
+ # metadata
+ unset( _description )
+ unset( _license )
+ unset( _copyright )
+ unset( _authors )
+ unset( _product )
+ unset( _organization )
+ unset( _version )
+ unset( _datetime )
+ unset( _notes )
+
+ # default metadata
+ set( _product "Trinity Desktop Environment" )
+ tde_curdatetime( _datetime )
+
foreach( _arg ${ARGV} )
# this variable help us to skip
@@ -617,6 +632,44 @@ macro( tde_add_library _arg_target )
unset( ${_storage} )
endif( "${_arg}" STREQUAL "DESTINATION" )
+ # metadata
+ if( "${_arg}" STREQUAL "DESCRIPTION" )
+ set( _skip_store 1 )
+ set( _storage "_description" )
+ endif( )
+ if( "${_arg}" STREQUAL "LICENSE" )
+ set( _skip_store 1 )
+ set( _storage "_license" )
+ endif( )
+ if( "${_arg}" STREQUAL "COPYRIGHT" )
+ set( _skip_store 1 )
+ set( _storage "_copyright" )
+ endif( )
+ if( "${_arg}" STREQUAL "AUTHORS" )
+ set( _skip_store 1 )
+ set( _storage "_authors" )
+ endif( )
+ if( "${_arg}" STREQUAL "PRODUCT" )
+ set( _skip_store 1 )
+ set( _storage "_product" )
+ endif( )
+ if( "${_arg}" STREQUAL "ORGANIZATION" )
+ set( _skip_store 1 )
+ set( _storage "_organization" )
+ endif( )
+ if( "${_arg}" STREQUAL "VERSION" )
+ set( _skip_store 1 )
+ set( _storage "_version" )
+ endif( )
+ if( "${_arg}" STREQUAL "DATETIME" )
+ set( _skip_store 1 )
+ set( _storage "_datetime" )
+ endif( )
+ if( "${_arg}" STREQUAL "NOTES" )
+ set( _skip_store 1 )
+ set( _storage "_notes" )
+ endif( )
+
# storing value
if( _storage AND NOT _skip_store )
list( APPEND ${_storage} ${_arg} )
@@ -817,6 +870,7 @@ macro( tde_add_executable _arg_target )
# default metadata
set( _product "Trinity Desktop Environment" )
+ set( _version "${TDE_VERSION}" )
tde_curdatetime( _datetime )
foreach( _arg ${ARGV} )