header: Add printf attribute checking with gcc.
[platform/upstream/cmocka.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 lightweight C unit testing library")
7 set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
8 set(CPACK_PACKAGE_VENDOR "Andreas Schneider")
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 "0")
15 set(CPACK_PACKAGE_VERSION_MINOR "1")
16 set(CPACK_PACKAGE_VERSION_PATCH "2")
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/;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 ${CPACK_PACKAGE_DESCRIPTION_SUMMARY})
33         set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
34         set(CPACK_NSIS_MENU_LINKS "https://code.google.com/p/cmocka/" "cmocka homepage")
35     endif (NSIS_MAKE)
36 endif (WIN32)
37
38 set(CPACK_PACKAGE_INSTALL_DIRECTORY "cmocka")
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 cmocka")
46 set(CPACK_COMPONENT_HEADERS_DESCRIPTION
47   "C/C++ header files for use with cmocka")
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)