From b28d877c22f77849fa3ba7d523381585b30e0c97 Mon Sep 17 00:00:00 2001 From: Nigel Stewart Date: Mon, 19 Jul 2021 13:51:34 +1000 Subject: [PATCH] dist target added to CMakeLists.txt for convenience --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bbe2f7..f19a3ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,3 +294,10 @@ export( FILE CCCoreLibTargets.cmake ) + +#################################################### +# Distribution .tgz +#################################################### + +add_custom_target(dist-directory COMMAND ${CMAKE_COMMAND} -E make_directory dist) +add_custom_target(dist COMMAND tar -C ${CMAKE_INSTALL_PREFIX} -f ${CMAKE_BINARY_DIR}/dist/cccorelib.tar.gz -cvz . DEPENDS dist-directory)