Commit fe7c9c5b authored by François Grisez's avatar François Grisez

Add CPack targets for source package generation

parent 29c556fa
......@@ -100,3 +100,16 @@ add_subdirectory(Share)
if(ENABLE_EXAMPLES)
add_subdirectory(Examples)
endif()
# CPack settings
set(CPACK_PACKAGE_NAME "bcunit")
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
set(CPACK_SOURCE_IGNORE_FILES
"^${CMAKE_BINARY_DIR}"
"/\\\\..+"
)
include(CPack)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment