source: tags/release-0.5.2/CMakeLists.txt @ 212

Last change on this file since 212 was 212, checked in by Joachim Langenbach, 9 years ago

Fixed wrong patch level in CMakeLists.txt

File size: 17.2 KB
Line 
1######################
2#
3#    Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
4#
5#    This library is free software; you can redistribute it and/or
6#    modify it under the terms of the GNU Lesser General Public
7#    License as published by the Free Software Foundation; either
8#    version 2.1 of the License, or (at your option) any later version.
9#
10#    This library is distributed in the hope that it will be useful,
11#    but WITHOUT ANY WARRANTY; without even the implied warranty of
12#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13#    Lesser General Public License for more details.
14#
15#    You should have received a copy of the GNU Lesser General Public
16#    License along with this library; if not, write to the Free Software
17#    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18#    MA 02110-1301  USA.
19#
20######################
21
22CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
23PROJECT(libengsas)
24
25SET(TARGET_VERSION_MAJOR 0 )
26SET(TARGET_VERSION_MINOR 5 )
27SET(${PROJECT_NAME}_PATCH_LEVEL 2 )
28SET(${PROJECT_NAME}_VERSION
29    "${TARGET_VERSION_MAJOR}.${TARGET_VERSION_MINOR}.${${PROJECT_NAME}_PATCH_LEVEL}" )
30SET(VERSION ${${PROJECT_NAME}_VERSION})
31
32INCLUDE(CTest)
33# Set timeout for each test (for manual mode)
34# To set it with scripts see experimental.ctest
35#SET(DART_TESTING_TIMEOUT 60 CACHE STRING "")
36
37OPTION(BUILD_PACKAGE "Used to setup all stuff for packaging. To include the header files and libengsas-testing, set BUILD_DEV=ON" OFF)
38OPTION(BUILD_DEV "All stuff needed for developing (e.g. QtDesigner Plugins, header, ...). Also install libengsas-testing if BUILD_PACKAGE is set to ON" ON)
39OPTION(BUILD_DEBUG "Build in debug mode" OFF)
40OPTION(BINDINGS_KDE "Build with KDE features" ON)
41OPTION(COMPATIBLE_WITH_NON_KDE "Install KDE version compatible to non KDE version" OFF)
42OPTION(L10N_ALL "Build with all languages" ON)
43OPTION(L10N_DE  "Build with german language" OFF)
44OPTION(L10N_EN  "Build with english language" OFF)
45OPTION(L10N_FR  "Build with french language" OFF)
46OPTION(WITH_FILE_SERVICE_PLUGINS_ALL "Build with all EFileService plugins" ON)
47OPTION(WITH_FILE_SERVICE_FILESYSTEM "Build with EFileService plugin EFileSystem which uses local file system" OFF)
48OPTION(WITH_CHARTS "Build library with widgets to display charts" ON)
49OPTION(WITH_API_DOCS "Generate API documentation" OFF)
50
51SET(BUILD_DEBUG_WANTED ${BUILD_DEBUG})
52SET(BUILD_DEV_WANTED ${BUILD_DEV})
53SET(BUILD_TESTING_WANTED ${BUILD_TESTING})
54SET(BUILD_PACKAGE_WANTED ${BUILD_PACKAGE})
55SET(BINDINGS_KDE_WANTED ${BINDINGS_KDE})
56SET(COMPATIBLE_WITH_NON_KDE_WANTED ${COMPATIBLE_WITH_NON_KDE})
57SET(L10N_ALL_WANTED ${L10N_ALL})
58SET(L10N_DE_WANTED ${L10N_DE})
59SET(L10N_EN_WANTED ${L10N_EN})
60SET(L10N_FR_WANTED ${L10N_FR})
61SET(WITH_FILE_SERVICE_PLUGINS_ALL_WANTED ${WITH_FILE_SERVICE_PLUGINS_ALL})
62SET(WITH_FILE_SERVICE_FILESYSTEM_WANTED ${WITH_FILE_SERVICE_FILESYSTEM})
63SET(WITH_CHARTS_WANTED ${WITH_CHARTS})
64SET(WITH_API_DOCS_WANTED ${WITH_API_DOCS})
65
66MARK_AS_ADVANCED(COMPATIBLE_WITH_NON_KDE WITH_API_DOCS)
67
68# disable debug mode, when building package
69IF(BUILD_PACKAGE)
70        IF(BUILD_DEBUG)
71                MESSAGE("warning: Disabled Debug mode, because Packagemode succeed over BUILD_DEBUG")
72                SET(BUILD_DEBUG OFF)
73        ENDIF(BUILD_DEBUG)
74        IF(BUILD_DEV)
75                SET(WITH_API_DOCS ON)
76        ENDIF(BUILD_DEV)
77ENDIF(BUILD_PACKAGE)
78
79IF(BUILD_DEBUG)
80        SET(CMAKE_BUILD_TYPE Debug)
81ELSE(BUILD_DEBUG)
82        SET(CMAKE_BUILD_TYPE Release)
83ENDIF(BUILD_DEBUG)
84# Qt4 must be included after setting the build type
85FIND_PACKAGE(Qt4 REQUIRED)
86
87#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconversion-null -Wunused-but-set-variable -Wsequence-point")
88#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconversion-null -Wunused-but-set-variable -Wsequence-point")
89
90SET(KDE 0)
91IF(BINDINGS_KDE)
92        FIND_PACKAGE(KDE4)
93        IF(KDE4_FOUND)
94                SET(KDE 1)
95                # use, i.e. don't skip the full RPATH for the build tree
96                SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
97                # when building, don't use the install RPATH already
98                # (but later on when installing)
99                SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
100                # the RPATH to be used when installing
101                SET(CMAKE_INSTALL_RPATH "")
102                # don't add the automatically determined parts of the RPATH
103                # which point to directories outside the build tree to the install RPATH
104                # (This is the only option which is changed in fedora in FindKDE4Internal.cmake to achieve
105                # the wanted behaviour)
106                SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
107                ADD_DEFINITIONS(${KDE4_DEFINITIONS})
108                INCLUDE(KDE4Defaults)
109                INCLUDE(MacroLibrary)
110                # KDE also sets BUILD_TESTING to true
111                # so we set it back to chosen state
112                SET(BUILD_TESTING ${BUILD_TESTING_WANTED})
113        ELSE(KDE4_FOUND)
114                MESSAGE("warning: KDE not found --> Disabled KDE-Bindings")
115                SET(BINDINGS_KDE OFF)
116                SET(KDE 0)
117        ENDIF(KDE4_FOUND)
118ELSE(BINDINGS_KDE)
119        SET(COMPATIBLE_WITH_NON_KDE OFF)
120ENDIF(BINDINGS_KDE)
121
122IF(NOT KDE)
123        IF(NOT APPLE)
124                SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
125        ENDIF(NOT APPLE)
126        IF(MSVC)
127                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_EXCEPTIONS")
128        ELSE(MSVC)
129                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common")
130        ENDIF(MSVC)
131        IF(NOT WIN32 AND NOT APPLE)
132#               SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc -Wl,--disable-auto-import")
133                SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--fatal-warnings -lc")
134                SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi")
135        ENDIF(NOT WIN32 AND NOT APPLE)
136ENDIF(NOT KDE)
137IF(BUILD_DEBUG AND NOT MSVC)
138        SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fprofile-arcs -ftest-coverage")
139        SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
140ENDIF(BUILD_DEBUG AND NOT MSVC)
141ADD_DEFINITIONS(${QT_DEFINITIONS})
142
143# directory to install binaries
144SET(bin_DIR ${CMAKE_INSTALL_PREFIX}/bin)
145IF(WIN32)
146  SET(bin_DIR .)
147ENDIF(WIN32)
148
149# shared library directory ($LIB_INSTALL_DIR)
150# and directory for plugins, translations, ... ($share_DIR)
151IF(NOT WIN32)
152        SET(LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib/" CACHE STRING "Where to install the library files to")
153ENDIF(NOT WIN32)
154SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
155IF(UNIX)
156        SET(ENGSAS_EPART_DIR "${LIB_INSTALL_DIR}/${PROJECT_NAME}" CACHE STRING "Where to install EParts to")
157#  SET(designer_DIR "/usr/lib/qt4/plugins/designer")
158        SET(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
159        SET(include_DIR ${CMAKE_INSTALL_PREFIX}/include/engsas)
160        SET(find_cmake_DIR ${CMAKE_ROOT}/Modules/)
161        SET(share_DIR ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME})
162        SET(ENGSAS_FILE_SERVICE_PLUGIN_DIR "${ENGSAS_EPART_DIR}/efileservices")
163        SET(man_DIR ${CMAKE_INSTALL_PREFIX}/share/man)
164ELSE(UNIX)
165        SET(ENGSAS_EPART_DIR ${bin_DIR})
166        SET(LIB_INSTALL_DIR ${bin_DIR})
167        SET(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH})
168        SET(include_DIR ${bin_DIR}/include)
169        IF(BUILD_PACKAGE)
170                SET(find_cmake_DIR ${bin_DIR})
171        ELSE(BUILD_PACKAGE)
172                SET(find_cmake_DIR ${CMAKE_ROOT}/Modules/)
173        ENDIF(BUILD_PACKAGE)
174        SET(share_DIR ${bin_DIR})
175        SET(ENGSAS_FILE_SERVICE_PLUGIN_DIR ${bin_DIR}/efileservices)
176        SET(man_DIR ${bin_DIR}/man)
177ENDIF(UNIX)
178# directory to install language files
179SET(qm_DIR ${share_DIR}/lang)
180#directory to install rcc files
181SET(rcc_DIR ${share_DIR}/rcc)
182# directory to install dependency files
183SET(depends_DIR ${share_DIR}/depends)
184SET(apidocs_DIR ${share_DIR}/apidocs)
185SET(pkgconfig_DIR ${LIB_INSTALL_DIR}/pkgconfig/)
186
187IF(COMPATIBLE_WITH_NON_KDE)
188        # change the directories to avoid conflicts with non kde version
189        SET(LIB_INSTALL_DIR ${LIB_INSTALL_DIR}/kde)
190        # disable all shared stuff between non kde and kde version
191        SET(BUILD_TESTING OFF)
192        SET(BUILD_WITH_CHARTS OFF)
193        SET(BUILD_DEV OFF)
194        SET(L10N_ALL OFF)
195        SET(WITH_FILE_SERVICE_PLUGINS_ALL OFF)
196        SET(WITH_CHARTS OFF)
197        SET(WITH_API_DOCS OFF)
198ENDIF(COMPATIBLE_WITH_NON_KDE)
199
200######################
201#
202# internatalization
203#
204######################
205IF(L10N_ALL)
206        SET(L10N_DE ON)
207        SET(L10N_EN ON)
208        SET(L10N_FR ON)
209ENDIF(L10N_ALL)
210
211######################
212#
213# EFileServicePlugins
214#
215######################
216IF(WITH_FILE_SERVICE_PLUGINS_ALL)
217        SET(WITH_FILE_SERVICE_FILESYSTEM ON)
218ENDIF(WITH_FILE_SERVICE_PLUGINS_ALL)
219
220CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake)
221
222SET(libengsas_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/lib/core)
223SET(libengsas_BINARY_DIR ${CMAKE_BINARY_DIR}/src/lib/core)
224SET(libengsas_testing_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/lib/testing)
225SET(libengsas_testing_BINARY_DIR ${CMAKE_BINARY_DIR}/src/lib/testing)
226IF(WITH_CHARTS)
227        SET(libengsas_charts_SOURCE_DIR ${CMAKE_SOURCE_DIR}/src/lib/charts)
228        SET(libengsas_charts_BINARY_DIR ${CMAKE_BINARY_DIR}/src/lib/charts)
229ENDIF(WITH_CHARTS)
230ADD_SUBDIRECTORY(src)
231ADD_SUBDIRECTORY(doc)
232
233# printing chosen configuration
234MESSAGE("######################################################")
235MESSAGE("")
236MESSAGE("CONFIGURATION")
237MESSAGE("")
238MESSAGE("CMAKE_SHARED_LINKER_FLAGS: ${CMAKE_SHARED_LINKER_FLAGS}")
239MESSAGE("CMAKE_CXX_FLAGS:           ${CMAKE_CXX_FLAGS}")
240MESSAGE("CMAKE_INSTALL_PREFIX:      ${CMAKE_INSTALL_PREFIX}")
241MESSAGE("")
242MESSAGE("OPTIONS:")
243MESSAGE("  Name                             Wanted       Used")
244MESSAGE("  BUILD_PACKAGE:                   ${BUILD_PACKAGE_WANTED}             ${BUILD_PACKAGE}")
245MESSAGE("  BUILD_DEBUG:                     ${BUILD_DEBUG_WANTED}               ${BUILD_DEBUG}")
246MESSAGE("  BUILD_DEV:                       ${BUILD_DEV_WANTED}         ${BUILD_DEV}")
247MESSAGE("  BUILD_TESTING:                   ${BUILD_TESTING_WANTED}             ${BUILD_TESTING}")
248MESSAGE("  BINDINGS_KDE:                    ${BINDINGS_KDE_WANTED}              ${BINDINGS_KDE}")
249MESSAGE("  COMPATIBLE_WITH_NON_KDE:         ${COMPATIBLE_WITH_NON_KDE_WANTED}           ${COMPATIBLE_WITH_NON_KDE}")
250# MESSAGE("  WITH_HANDBOOK:                   ${WITH_HANDBOOK_WANTED}           ${WITH_HANDBOOK}")
251MESSAGE("  L10N_ALL:                        ${L10N_ALL_WANTED}          ${L10N_ALL}")
252MESSAGE("    L10N_DE:                       ${L10N_DE_WANTED}           ${L10N_DE}")
253MESSAGE("    L10N_EN:                       ${L10N_EN_WANTED}           ${L10N_EN}")
254MESSAGE("    L10N_FR:                       ${L10N_FR_WANTED}           ${L10N_FR}")
255MESSAGE("  WITH_FILE_SERVICE_PLUGINS_ALL:   ${WITH_FILE_SERVICE_PLUGINS_ALL_WANTED}             ${WITH_FILE_SERVICE_PLUGINS_ALL}")
256MESSAGE("    WITH_FILE_SERVICE_FILESYSTEM:  ${WITH_FILE_SERVICE_FILESYSTEM_WANTED}              ${WITH_FILE_SERVICE_FILESYSTEM}")
257MESSAGE("  WITH_CHARTS:                     ${WITH_CHARTS_WANTED}               ${WITH_CHARTS}")
258MESSAGE("  WITH_API_DOCS:                   ${WITH_API_DOCS_WANTED}             ${WITH_API_DOCS}")
259MESSAGE("")
260MESSAGE("######################################################")
261
262IF(NOT BINDINGS_KDE)
263        ########### Add uninstall target ###############
264        CONFIGURE_FILE(
265                "${CMAKE_CURRENT_SOURCE_DIR}/cmake/cmake_uninstall.cmake.in"
266                "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake"
267                IMMEDIATE @ONLY)
268        ADD_CUSTOM_TARGET(uninstall
269                "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake/cmake_uninstall.cmake")
270ENDIF(NOT BINDINGS_KDE)
271
272SET(CPACK_GENERATOR "NSIS")
273SET(CPACK_PACKAGE_NAME "LibEngsas")
274SET(CPACK_PACKAGE_VENDOR "EngSaS - Engineering Solutions and Services Langenbach")
275SET(CPACK_NSIS_CONTACT "info@engsas.de")
276SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LibEngsas is a library which improves Qt a little bit and encapsulates KDE bindings if possible")
277SET(CPACK_PACKAGE_VERSION ${${PROJECT_NAME}_VERSION})
278SET(CPACK_PACKAGE_VERSION_MAJOR ${TARGET_MAJOR_VERSION})
279SET(CPACK_PACKAGE_VERSION_MINOR ${TARGET_MINOR_VERSION})
280SET(CPACK_PACKAGE_VERSION_PATCH ${${PROJECT_NAME}_PATCH_LEVEL})
281#SET(CPACK_PACKAGE_INSTALL_DIRECTORY "DeSuTo/${${PROJECT_NAME}_VERSION}")
282SET(CPACK_PACKAGE_INSTALL_DIRECTORY "libengsas")
283SET(CPACK_NSIS_INSTALLED_ICON_NAME "$INSTDIR/epartexe.exe")
284
285
286# add all components which should be installable via the package
287IF(WIN32)
288        SET(external_DLL qtlibs)
289ENDIF(WIN32)
290
291SET(CPACK_COMPONENTS_ALL
292        library
293        efilesystemplugin
294        applicationepartexe
295        charts
296        headerfiles
297        devfinding
298        devdesigner
299        devtesting
300        devapidocs
301        ${external_DLL}
302)
303
304# License file
305SET(CPACK_RESOURCE_FILE_LICENSE ${CMAKE_SOURCE_DIR}/LICENSE.txt)
306
307# Pre selected installation profiles
308SET(CPACK_ALL_INSTALL_TYPES Typical Full Minimal)
309SET(CPACL_INSTALL_TYPE_TYPICAL_DISPLAY_NAME "Typical")
310SET(CPACL_INSTALL_TYPE_FULL_DISPLAY_NAME "Full")
311SET(CPACL_INSTALL_TYPE_MINIMAL_DISPLAY_NAME "Minimal")
312
313# groups for components
314SET(CPACK_COMPONENT_GROUP_BASE_DISPLAY_NAME "LibEngsas")
315SET(CPACK_COMPONENT_GROUP_BASE_DESCRIPTION "The LibEngsas core stuff")
316SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DISPLAY_NAME "Development")
317SET(CPACK_COMPONENT_GROUP_DEVELOPMENT_DESCRIPTION "All needed stuff to develop with LibEngsas")
318SET(CPACK_COMPONENT_GROUP_FILESERVICEPLUGINS_DISPLAY_NAME "Fileservice Plugins")
319SET(CPACK_COMPONENT_GROUP_FILESERVICEPLUGINS_DESCRIPTION "This components provides services to handle files")
320SET(CPACK_COMPONENT_GROUP_3RDPARTYLIBS_DISPLAY_NAME "3rd Party Libraries")
321SET(CPACK_COMPONENT_GROUP_3RDPARTYLIBS_DESCRIPTION "3rd Party libraries which are needed to run Meganizer and or modules. They are only needed if they are not already exist in PATH")
322# SET(CPACK_COMPONENT_GROUP_DOC_DISPLAY_NAME "Documentations")
323# SET(CPACK_COMPONENT_GROUP_DOC_DESCRIPTION "Contains all types of available documentations")
324
325# the scheme of the variable names are: CPACK_COMPNONENT_%COMPONENTNAMEINUPPERCASE%_DISPLAY_NAME
326# where %COMPONENTNAMEINUPPERCASE% must be replaced by the upper cased name of the component
327# see below for example
328SET(CPACK_COMPONENT_QTLIBS_DISPLAY_NAME "QT")
329SET(CPACK_COMPONENT_QTLIBS_DESCRIPTION
330   "Libraries which are needed, but not belonging to this project. They must not be installed, if they are already installed at path")
331SET(CPACK_COMPONENT_QTLIBS_GROUP "3rdPartyLibs")
332SET(CPACK_COMPONENT_QTLIBS_INSTALL_TYPES Typical Full)
333
334SET(CPACK_COMPONENT_LIBRARY_DISPLAY_NAME "LibEngsas Library")
335SET(CPACK_COMPONENT_LIBRARY_DESCRIPTION "The library itself")
336SET(CPACK_COMPONENT_LIBRARY_GROUP "Base")
337SET(CPACK_COMPONENT_LIBRARY_INSTALL_TYPES Typical Full Minimal)
338
339SET(CPACK_COMPONENT_APPLICATIONEPARTEXE_DISPLAY_NAME "EPartExe")
340SET(CPACK_COMPONENT_APPLICATIONEPARTEXE_DESCRIPTION "The executable to launch EParts")
341SET(CPACK_COMPONENT_APPLICATIONEPARTEXE_GROUP "Base")
342SET(CPACK_COMPONENT_APPLICATIONEPARTEXE_INSTALL_TYPES Typical Full)
343
344##########################
345#
346# EFileServicePLugins - Group "Fileservice Plugins"
347#
348##########################
349IF(WITH_FILE_SERVICE_FILESYSTEM)
350  SET(CPACK_COMPONENT_EFILESYSTEMPLUGIN_DISPLAY_NAME "Filesystem plugin")
351  SET(CPACK_COMPONENT_EFILESYSTEMPLUGIN_DESCRIPTION "Module to handle files on local filesystems")
352  SET(CPACK_COMPONENT_EFILESYSTEMPLUGIN_GROUP "Fileservice Plugins")
353  SET(CPACK_COMPONENT_EFILESYSTEMPLUGIN_INSTALL_TYPES Typical Full)
354        SET(CPACK_COMPONENT_EFILESYSTEMPLUGIN_DEPENDS library)
355ENDIF(WITH_FILE_SERVICE_FILESYSTEM)
356
357##########################
358#
359# libengsas-charts
360#
361##########################
362SET(CPACK_COMPONENT_CHARTS_DISPLAY_NAME "LibEngsas Charts Library")
363SET(CPACK_COMPONENT_CHARTS_DESCRIPTION "Library module to display charts")
364SET(CPACK_COMPONENT_CHARTS_GROUP "Base")
365SET(CPACK_COMPONENT_CHARTS_INSTALL_TYPES Typical Full Minimal)
366SET(CPACK_COMPONENT_CHARTS_DEPENDS library)
367
368##########################
369#
370# Development - Group "Development"
371#
372##########################
373IF(BUILD_DEV)
374        SET(CPACK_COMPONENT_DEVTESTING_DISPLAY_NAME "LibEngsas testing library")
375        SET(CPACK_COMPONENT_DEVTESTING_DESCRIPTION
376                 "Library to build tests easier")
377        SET(CPACK_COMPONENT_DEVTESTING_GROUP "Development")
378        SET(CPACK_COMPONENT_DEVTESTING_INSTALL_TYPES Full)
379        SET(CPACK_COMPONENT_DEVTESTING_DEPENEDS library)
380
381  SET(CPACK_COMPONENT_DEVDESIGNER_DISPLAY_NAME "LibEngsas Designer Plugins")
382  SET(CPACK_COMPONENT_DEVDESIGNER_DESCRIPTION
383     "QtDesigner Plugins for Widgets provided by LibEngsas")
384  SET(CPACK_COMPONENT_DEVDESIGNER_GROUP "Development")
385  SET(CPACK_COMPONENT_DEVDESIGNER_INSTALL_TYPES Full)
386        SET(CPACK_COMPONENT_DEVDESIGNER_DEPENDS library)
387
388  SET(CPACK_COMPONENT_HEADERFILES_DISPLAY_NAME "Header files of LibEngsas")
389  SET(CPACK_COMPONENT_HEADERFILES_DESCRIPTION
390     "Contains header files to develop with LibEngsas and it's components")
391  SET(CPACK_COMPONENT_HEADERFILES_GROUP "Development")
392  SET(CPACK_COMPONENT_HEADERFILES_INSTALL_TYPES Full)
393        SET(CPACK_COMPONENT_HEADERFILES_DEPENEDS library)
394       
395        SET(CPACK_COMPONENT_DEVFINDING_DISPLAY_NAME "Files to find LibEngsas")
396  SET(CPACK_COMPONENT_DEVFINDING_DESCRIPTION
397     "Files to find LibEngsas with CMake and pkgconfig")
398  SET(CPACK_COMPONENT_DEVFINDING_GROUP "Development")
399  SET(CPACK_COMPONENT_DEVFINDING_INSTALL_TYPES Full)
400        SET(CPACK_COMPONENT_DEVFINDING_DEPENEDS library)
401       
402        SET(CPACK_COMPONENT_DEVAPIDOCS_DISPLAY_NAME "API documentation of LibEngsas")
403  SET(CPACK_COMPONENT_DEVAPIDOCS_DESCRIPTION
404     "The API documentation of LibEngsas and all packaged stuff")
405  SET(CPACK_COMPONENT_DEVAPIDOCS_GROUP "Development")
406  SET(CPACK_COMPONENT_DEVAPIDOCS_INSTALL_TYPES Full)
407ENDIF(BUILD_DEV)
408
409# used by NSIS to create startmenu links to the executables
410# this entrys are only useful if a bin folder is used, otherwise use the empty EXECUTABLES
411# and fill out the NSIS_MENU_LINKS
412#SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} "desuto" "DeSuTo")
413#SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} "desutodaemon" "DeSuToDaemon")
414SET(CPACK_PACKAGE_EXECUTABLES "" "")
415
416IF(WITH_API_DOCS)
417        SET(CPACK_NSIS_MENU_LINKS "${apidocs_DIR}/index.html" "API Documentation")
418ENDIF(WITH_API_DOCS)
419       
420# This must always be last!
421INCLUDE(CPack)
Note: See TracBrowser for help on using the repository browser.