3
install (TARGETS ${PROJECT_NAME}_shared DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
COMPONENT runtime)
install (TARGETS ${PROJECT_NAME}_static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
COMPONENT development)
install (FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_PREFIX}/include
COMPONENT development)
...
set (CPACK_PACKAGE_FILE_NAME
"lib${CPACK_PACKAGE_NAME}_${CPACK_PACKAGE_VERSION}_${CPACK_DEBIAN_PACKAGE_ARCHITECTURE}")
我有2個deb包的結果:cpack DEB發電機組件輸出名稱
libmpreal_0.1.1-1_amd64-development.deb
libmpreal_0.1.1-1_amd64-runtime.deb
但我想有Debian的standarts另一名:
libmpreal-dev_0.1.1-1_amd64.deb
libmpreal_0.1.1-1_amd64.deb
現在我正在讀this在方法cmCPackDebGenerator :: PackageOnePack 這裏是一個代碼:
outputFileName(
std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME"))
+ "-" + packageName + this->GetOutputExtension()
);
這是否意味着我不能爲我的包指定一個名稱?我想犯了一個錯誤..