aboutsummaryrefslogtreecommitdiff
path: root/attic/modules/CMakeLists.txt
blob: c832bedcb7bf1aa2c9ff340990cf8d5e11b3be07 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
## install the cmake files

set(module_install_dir ${DATA_INSTALL_DIR}/cmake/modules )

# maybe FindHUNSPELL.cmake doesn't have to be installed ?
# This variable doesn't actually do anything, but it's probably a good idea
# to have it around, so there is a place where the modules which are not installed
# are listed explicitely:
set(cmakeFilesDontInstall
               FindHUpnp.cmake
               FindPolkitQt.cmake
               FindPolkitQt-1.cmake
               FindUDev.cmake
               )

# Explicitely list all files which will be installed.
# We don't use a GLOB anymore so we can have also cmake files here
# which are used inside kdelibs, but which don't have to be installed (and
# so become part of the public interface of kdelibs which has to be kept
# compatible).
set(cmakeFiles CheckCXXSourceCompiles.cmake
               CheckCXXSourceRuns.cmake
               CheckPointerMember.cmake
               CheckPrototypeExists.cmake
               CheckStructMember.cmake
               FindACL.cmake
               FindAGG.cmake
               FindAlsa.cmake
               FindAvahi.cmake
               FindBerkeleyDB.cmake
               FindCarbon.cmake
               FindDBusMenuQt.cmake
               FindDNSSD.cmake
               FindENCHANT.cmake
               FindEigen.cmake
               FindEigen2.cmake
               FindExiv2.cmake
               FindFAM.cmake
               FindFFmpeg.cmake
               FindFlac.cmake
               FindFontconfig.cmake
               FindGLIB2.cmake
               FindGMP.cmake
               FindGObject.cmake
               FindGSSAPI.cmake
               FindGStreamer.cmake
               FindGphoto2.cmake
               FindHUNSPELL.cmake
               FindIOKit.cmake
               FindKDE4Workspace.cmake
               FindKDEWIN32.cmake
               FindKDEWIN_Packager.cmake
               FindKDEWin.cmake
               FindKDevPlatform.cmake
               FindKdcraw.cmake
               FindKdeMultimedia.cmake
               FindKexiv2.cmake
               FindKipi.cmake
               FindKopete.cmake
               FindKorundum.cmake
               FindLCMS.cmake
               FindLibArt.cmake
               FindLibAttica.cmake
               FindLibKonq.cmake
               FindLibLZMA.cmake
               FindLibPython.py
               FindLibintl.cmake
               FindLibraryWithDebug.cmake
               FindLinuxWirelesstools.cmake
               FindMusicBrainz.cmake
               FindMySQL.cmake
               FindNepomuk.cmake
               FindNetworkManager.cmake
               FindOggVorbis.cmake
               FindOpenEXR.cmake
               FindPCRE.cmake
               FindPhonon.cmake
               FindPopplerQt4.cmake
               FindPulseAudio.cmake
               FindPyKDE4.cmake
               FindPyKDE4.py
               FindPyQt.py
               FindPyQt4.cmake
               FindPythonLibrary.cmake
               FindQCA2.cmake
               FindQImageBlitz.cmake
               FindQt4.cmake
               FindSIP.cmake
               FindSIP.py
               FindSamba.cmake
               FindSane.cmake
               FindSasl2.cmake
               FindSharedDesktopOntologies.cmake
               FindSharedMimeInfo.cmake
               FindSqlite.cmake
               FindStrigi.cmake
               FindTaglib.cmake
               FindUSB.cmake
               FindWcecompat.cmake
               FindXKB.cmake
               FindXine.cmake
               FindXmms.cmake
               HandleImportedTargetsInCMakeRequiredLibraries.cmake
               MacroAppendIf.cmake
               MacroBoolTo01.cmake
               MacroEnsureOutOfSourceBuild.cmake
               MacroLibrary.cmake
               NepomukAddOntologyClasses.cmake
               NepomukMacros.cmake
               PythonCompile.py
               PythonMacros.cmake
               Qt4ConfigDependentSettings.cmake
               Qt4Macros.cmake
               SIPMacros.cmake
               check_installed_exports_file.cmake
               cmake-modules-styleguide.txt
               config-alsa.h.cmake
               create_exe_symlink.cmake
               kde4_cmake_uninstall.cmake.in
               kde4_exec_via_sh.cmake
               )

if (KDE4_ENABLE_UAC_MANIFEST)
   set(cmakeFiles ${cmakeFiles} Win32.Manifest.in )
endif (KDE4_ENABLE_UAC_MANIFEST)

install(FILES ${cmakeFiles}
        DESTINATION ${module_install_dir} )


# the files listed here will be removed by remove_obsoleted_cmake_files.cmake, Alex
#set(FILES_TO_REMOVE
#)

#install(SCRIPT ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake )

#file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "#generated by cmake, dont edit\n\n")
#foreach ( _current_FILE ${FILES_TO_REMOVE})
#   file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "message(STATUS \"Removing ${_current_FILE}\" )\n" )
#   file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/remove_files.cmake "exec_program( ${CMAKE_COMMAND} ARGS -E remove ${_current_FILE} OUTPUT_VARIABLE _dummy)\n" )
#endforeach ( _current_FILE)

# create and install a man page for the kdelibs cmake modules
add_custom_target(KDECMakeModulesManPage ALL COMMAND ${CMAKE_COMMAND} -DCMAKE_MODULE_PATH=${CMAKE_CURRENT_SOURCE_DIR} --help-custom-modules ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kdecmake.1 DESTINATION "${MAN_INSTALL_DIR}/man1")