Debian Codegraph @

CMakeLists.txt

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 PROJECT(mcu8051ide "NONE")
2 SET(mcu8051ide_version 1.4.9)
3
4 #
5 # INITIALIZE
6 #
7
8 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
9 SET(CMAKE_BUILD_TYPE None)
10 SET(CMAKE_COLOR_MAKEFILE ON)
11 SET(CMAKE_VERBOSE_MAKEFILE ON)
12 SET(CMAKE_INCLUDE_CURRENT_DIR TRUE)
13
14 # target directory (for data files)
15 SET(target_installation_directory share/mcu8051ide)
16
17 #
18 # PREPARATION
19 #
20
21 # create launcher
22 FILE(WRITE mcu8051ide
23 "#!/bin/sh\n"
24 "exec tclsh ${CMAKE_INSTALL_PREFIX}/${target_installation_directory}/lib/main.tcl \"$@\" || \\\n"
25 "\tprintf \"Unable to execute, TCL interpreter is not reachable.\n\" > /dev/stderr"
26 )
27
28 #
29 # INSTALLATION
30 #
31
32 # Install icons
33 FOREACH(subdir mcu flag other 16x16 22x22 32x32)
34 FILE(GLOB_RECURSE icons icons/${subdir}/*.png)
35 INSTALL(FILES ${icons} DESTINATION ${target_installation_directory}/icons/${subdir})
36 ENDFOREACH(subdir)
37
38 # Install source code files
39 FOREACH(subdir . bottompanel compiler configdialogues dialogues editor leftpanel lib pale rightpanel simulator simulator/engine utilities)
40 FILE(GLOB lib lib/${subdir}/*.tcl)
41 INSTALL(FILES ${lib} DESTINATION ${target_installation_directory}/lib/${subdir})
42 ENDFOREACH(subdir)
43
44 # Install contents of directory hwplugins
45 FILE(GLOB file hwplugins/*)
46 INSTALL(FILES ${file} DESTINATION ${target_installation_directory}/hwplugins)
47
48 # Install documentation files
49 FOREACH(subdir handbook)
50 FOREACH(ext pdf)
51 FILE(GLOB doc doc/${subdir}/*.${ext})
52 INSTALL(FILES ${doc} DESTINATION ${target_installation_directory}/doc/${subdir})
53 ENDFOREACH(ext)
54 ENDFOREACH(subdir)
55
56 # Install manual page(s)
57 FILE(GLOB man doc/man/*)
58 INSTALL(FILES ${man} DESTINATION share/man/man1)
59
60 # Install demonstration project files
61 FILE(GLOB demo demo/*)
62 INSTALL(FILES ${demo} DESTINATION ${target_installation_directory}/demo)
63
64 # Install data files
65 FILE(GLOB data data/*)
66 INSTALL(FILES ${data} DESTINATION ${target_installation_directory}/data)
67
68 # Install translation files
69 FILE(GLOB translations translations/*)
70 INSTALL(FILES ${translations} DESTINATION ${target_installation_directory}/translations)
71
72 # Install .desktop spec and application icon
73 INSTALL(FILES mcu8051ide.png DESTINATION share/pixmaps/)
74 INSTALL(FILES mcu8051ide.desktop DESTINATION share/applications/)
75 INSTALL(FILES mcu8051ide.appdata.xml DESTINATION share/appdata/)
76 INSTALL(FILES application-x-mcu8051ide.xml DESTINATION share/mime/packages/)
77
78 # Install launcher
79 INSTALL(
80 FILES mcu8051ide
81 DESTINATION bin
82 PERMISSIONS
83 WORLD_EXECUTE WORLD_READ
84 OWNER_WRITE OWNER_READ OWNER_EXECUTE
85 GROUP_EXECUTE GROUP_READ
86 )
87
88 # Install misc. files
89 INSTALL(
90 FILES ChangeLog LICENSE
91 DESTINATION ${target_installation_directory}
92 )