Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

54 рядки
2.0 KiB

  1. # For help take a look at:
  2. # http://www.cmake.org/Wiki/CMake:CPackConfiguration
  3. ### general settings
  4. set(CPACK_PACKAGE_NAME ${APPLICATION_NAME})
  5. set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Unit testing framework for C with mock objects")
  6. set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README")
  7. set(CPACK_PACKAGE_VENDOR "Andreas Schneider")
  8. set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
  9. set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
  10. ### versions
  11. set(CPACK_PACKAGE_VERSION_MAJOR "${APPLICATION_VERSION_MAJOR}")
  12. set(CPACK_PACKAGE_VERSION_MINOR "${APPLICATION_VERSION_MINOR}")
  13. set(CPACK_PACKAGE_VERSION_PATCH "${APPLICATION_VERSION_PATCH}")
  14. set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
  15. ### source generator
  16. set(CPACK_SOURCE_GENERATOR "TGZ")
  17. set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/obj*;tags;cscope.*;.ycm_extra_conf.pyc")
  18. set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
  19. if (WIN32)
  20. set(CPACK_GENERATOR "ZIP")
  21. ### nsis generator
  22. find_package(NSIS)
  23. if (NSIS_MAKE)
  24. set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS")
  25. set(CPACK_NSIS_DISPLAY_NAME "CMocka")
  26. set(CPACK_NSIS_COMPRESSOR "/SOLID zlib")
  27. set(CPACK_NSIS_MENU_LINKS "http://cmocka.org/" "cmocka homepage")
  28. endif (NSIS_MAKE)
  29. endif (WIN32)
  30. set(CPACK_PACKAGE_INSTALL_DIRECTORY "cmocka")
  31. set(CPACK_PACKAGE_FILE_NAME ${APPLICATION_NAME}-${CPACK_PACKAGE_VERSION})
  32. set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries")
  33. set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C/C++ Headers")
  34. set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION
  35. "Libraries used to build programs which use cmocka")
  36. set(CPACK_COMPONENT_HEADERS_DESCRIPTION
  37. "C/C++ header files for use with cmocka")
  38. set(CPACK_COMPONENT_HEADERS_DEPENDS libraries)
  39. #set(CPACK_COMPONENT_APPLICATIONS_GROUP "Runtime")
  40. set(CPACK_COMPONENT_LIBRARIES_GROUP "Development")
  41. set(CPACK_COMPONENT_HEADERS_GROUP "Development")
  42. include(CPack)