summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'parts/appwizard/common/CMakeLists.txt')
-rw-r--r--parts/appwizard/common/CMakeLists.txt30
1 files changed, 19 insertions, 11 deletions
diff --git a/parts/appwizard/common/CMakeLists.txt b/parts/appwizard/common/CMakeLists.txt
index 8451d3f7..916a8157 100644
--- a/parts/appwizard/common/CMakeLists.txt
+++ b/parts/appwizard/common/CMakeLists.txt
@@ -9,18 +9,26 @@
#
#################################################
-function( generate_tar output source )
- add_custom_target( ${output} ALL
- COMMAND ${TAR} -zcf ${output} --exclude=.svn --exclude=*.cdbs-orig -C ${CMAKE_CURRENT_SOURCE_DIR}/${source} ${ARGN} )
-endfunction( )
+file( GLOB _admin_content RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} admin/* )
+list(
+ REMOVE_ITEM _admin_content admin/.git
+ admin/config.guess.cdbs-orig admin/config.sub.cdbs-orig
+)
+
+file( GLOB _incadmin_content RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/incadmin incadmin/* )
+list( REMOVE_ITEM _incadmin_content config.guess.cdbs-orig config.sub.cdbs-orig )
-generate_tar( admin.tar.gz "" admin )
-generate_tar( gnome.tar.gz gnome macros )
-generate_tar( gnome2.tar.gz gnome2 macros )
-generate_tar( gnu.tar.gz gnu AUTHORS COPYING ChangeLog INSTALL NEWS README TODO )
-generate_tar( wxwidgets.tar.gz wx macros )
-generate_tar( incadmin.tar.gz incadmin config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs )
-generate_tar( scons.tar.gz scons configure admin/scons-mini.tar.bz2 admin/generic.py admin/kde.py )
+tde_create_tarball( TARGET admin.tar.gz FILES ${_admin_content} )
+tde_create_tarball( TARGET gnome.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnome )
+tde_create_tarball( TARGET gnome2.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnome2 )
+tde_create_tarball( TARGET gnu.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/gnu )
+tde_create_tarball( TARGET wxwidgets.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/wx )
+tde_create_tarball(
+ TARGET incadmin.tar.gz
+ SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/incadmin
+ FILES ${_incadmin_content}
+)
+tde_create_tarball( TARGET scons.tar.gz SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/scons )
install( FILES
${CMAKE_CURRENT_BINARY_DIR}/admin.tar.gz