mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-28 04:50:52 +08:00
02b45437b6
- Clang-tidy applied - No logic changes, just code style improvement.
19 lines
689 B
CMake
19 lines
689 B
CMake
# CPack Configuration
|
|
function(enable_cpack generator)
|
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
set(CPACK_GENERATOR ${generator})
|
|
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
|
|
set(CPACK_PACKAGE_RELEASE 1)
|
|
set(CPACK_PACKAGE_CONTACT "gelldur")
|
|
set(CPACK_PACKAGE_VENDOR "gelldur")
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_PACKAGE_RELEASE}.${CMAKE_SYSTEM_PROCESSOR}")
|
|
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
|
|
"${CMAKE_INSTALL_PREFIX}"
|
|
"${CMAKE_INSTALL_PREFIX}/include"
|
|
"${CMAKE_INSTALL_PREFIX}/lib64"
|
|
"${CMAKE_INSTALL_PREFIX}/lib"
|
|
)
|
|
include(CPack)
|
|
endfunction()
|