Add Jakub to AUTHORS file.
[obnox/cwrap/resolv_wrapper.git] / CPackConfig.cmake
1 # For help take a look at:
2 # http://www.cmake.org/Wiki/CMake:CPackConfiguration
3
4 ### general settings
5 set(CPACK_PACKAGE_NAME ${APPLICATION_NAME})
6 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The resolv wrapper")
7 set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
8 set(CPACK_PACKAGE_VENDOR "The Samba Team")
9 set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
10 set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
11
12
13 ### versions
14 set(CPACK_PACKAGE_VERSION_MAJOR "${APPLICATION_VERSION_MAJOR}")
15 set(CPACK_PACKAGE_VERSION_MINOR "${APPLICATION_VERSION_MINOR}")
16 set(CPACK_PACKAGE_VERSION_PATCH "${APPLICATION_VERSION_PATCH}")
17 set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
18
19
20 ### source generator
21 set(CPACK_SOURCE_GENERATOR "TGZ")
22 set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/build/;/obj/;tags;cscope.*")
23 set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
24
25 if (WIN32)
26     set(CPACK_GENERATOR "ZIP")
27
28     ### nsis generator
29     find_package(NSIS)
30     if (NSIS_MAKE)
31         set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS")
32         set(CPACK_NSIS_DISPLAY_NAME "The resolv wrapper")
33         set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
34         set(CPACK_NSIS_MENU_LINKS "http://www.samba.org/" "Samba homepage")
35     endif (NSIS_MAKE)
36 endif (WIN32)
37
38 set(CPACK_PACKAGE_INSTALL_DIRECTORY "libssh")
39
40 set(CPACK_PACKAGE_FILE_NAME ${APPLICATION_NAME}-${CPACK_PACKAGE_VERSION})
41
42 set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries")
43 set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C/C++ Headers")
44 set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION
45   "Libraries used to build programs which use libssh")
46 set(CPACK_COMPONENT_HEADERS_DESCRIPTION
47   "C/C++ header files for use with libssh")
48 set(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
49 #set(CPACK_COMPONENT_APPLICATIONS_GROUP "Runtime")
50 set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
51 set(CPACK_COMPONENT_HEADERS_GROUP "Development")
52
53 include(CPack)