diff options
author | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-18 22:37:42 +0000 |
---|---|---|
committer | samelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-11-18 22:37:42 +0000 |
commit | 78bb63fad043a154a9d50aad7d5a8b3f80cf6fd2 (patch) | |
tree | 7bb4d11a46c7c04866ba7c4771c55e9cc47f72c2 /cmake/modules/TDEMacros.cmake | |
parent | e0e9e985b3eae71db46df0375a7cd3adb79400f2 (diff) | |
download | other-78bb63fad043a154a9d50aad7d5a8b3f80cf6fd2.tar.gz other-78bb63fad043a154a9d50aad7d5a8b3f80cf6fd2.zip |
[kde-common/cmake] added EXPORT directive to macro tde_add_kdeinit_executable
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1198559 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'cmake/modules/TDEMacros.cmake')
-rw-r--r-- | cmake/modules/TDEMacros.cmake | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cmake/modules/TDEMacros.cmake b/cmake/modules/TDEMacros.cmake index 88a5ebd..3fbf929 100644 --- a/cmake/modules/TDEMacros.cmake +++ b/cmake/modules/TDEMacros.cmake @@ -683,12 +683,21 @@ macro( tde_add_kdeinit_executable _target ) # default storage is _sources set( _storage _sources ) + # set default export to NO_EXPORT + set( _export "NO_EXPORT" ) + foreach( _arg ${ARGN} ) # this variable help us to skip # storing unapropriate values (i.e. directives) unset( _skip_store ) + # found directive "EXPORT" + if( "${_arg}" STREQUAL "EXPORT" ) + set( _skip_store 1 ) + unset( _export ) + endif( "${_arg}" STREQUAL "EXPORT" ) + # found directive "RUNTIME_DESTINATION" if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" ) set( _skip_store 1 ) @@ -732,7 +741,7 @@ macro( tde_add_kdeinit_executable _target ) endif( NOT _plugin_destination ) # create the library - tde_add_library( kdeinit_${_target} ${_sources} SHARED NO_EXPORT + tde_add_library( kdeinit_${_target} ${_sources} SHARED ${_export} DESTINATION ${_library_destination} ) |