Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. cpack deb generator components output names
  2. install (TARGETS ${PROJECT_NAME}_shared DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
  3.     COMPONENT runtime)
  4. install (TARGETS ${PROJECT_NAME}_static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
  5.     COMPONENT development)
  6. install (FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include
  7.     COMPONENT development)
  8.  
  9. ...
  10. set (CPACK_PACKAGE_FILE_NAME
  11.     "lib${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
  12.        
  13. libmpreal_0.1.1-1_amd64-development.deb
  14. libmpreal_0.1.1-1_amd64-runtime.deb
  15.        
  16. libmpreal-dev_0.1.1-1_amd64.deb
  17. libmpreal_0.1.1-1_amd64.deb
  18.        
  19. outputFileName(
  20.     std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME"))
  21.     + "-" + packageName + this->GetOutputExtension()
  22. );