summaryrefslogtreecommitdiffstats
path: root/parts/appwizard/common/CMakeLists.txt
blob: 81ee38b446bfc965480bb675e7df91c8d9f64c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

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( )

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/tde.py )

install( FILES
    ${CMAKE_CURRENT_BINARY_DIR}/admin.tar.gz
    ${CMAKE_CURRENT_BINARY_DIR}/gnu.tar.gz
    ${CMAKE_CURRENT_BINARY_DIR}/incadmin.tar.gz
    ${CMAKE_CURRENT_BINARY_DIR}/gnome.tar.gz
    ${CMAKE_CURRENT_BINARY_DIR}/gnome2.tar.gz
    ${CMAKE_CURRENT_BINARY_DIR}/wxwidgets.tar.gz
    tde-app.lsm tde-Makefile.am tde-Makefile.cvs
    tde-configure.in.in tde-index.docbook
    tde-po-Makefile.am tde-doc-Makefile.am
    tde-doc-en-Makefile.am hi16-app-app.png
    hi32-app-app.png tde-app.desktop
    tde-part.desktop gnome-app.lsm
    gnome-Makefile.am gnome-Makefile.cvs
    gnome-pixmaps-Makefile.am gnome-app.png
    wx-configure.in wx-Makefile.am wx-Makefile.cvs
    COPYING COPYING.LIB LICENSE.QPL LICENSE.BSD
    Artistic admin.tdevtemplate gnu.tdevtemplate
    dockbook.tdevtemplate incadmin.tdevtemplate
    gnome2.tdevtemplate scons.tdevtemplate
    ${CMAKE_CURRENT_BINARY_DIR}/scons.tar.gz
  DESTINATION ${DATA_INSTALL_DIR}/tdevappwizard/template-common )