From 68f30307f98ae11d384e86ba092d1f8ce804f6d9 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 15 Jun 2012 16:48:15 -0400 Subject: [PATCH] Generate plugin/gtmcrypt/source.tar --- CMakeLists.txt | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 135bf25..0d25fa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,22 +298,34 @@ set_target_properties(maskpass PROPERTIES install(TARGETS maskpass DESTINATION ${GTM_INSTALL_DIR}/plugin/gtmcrypt) # these files need to end up in ${GTM_INSTALL_DIR}/plugin/gtmcrypt/source.tar -#foreach(encryptsource -# gtmcrypt_ref.c -# gtmcrypt_ref.h -# gtmcrypt_interface.h -# gtmxc_types.h -# maskpass.c -# gtmcrypt_dbk_ref.c -# gtmcrypt_dbk_ref.h -# gtmcrypt_pk_ref.c -# gtmcrypt_pk_ref.h -# gtmcrypt_sym_ref.h -# install.sh -# build.sh -# pinentry.m -# ) -#endforeach() +set(gtmcrypt_source_tar + gtmcrypt_ref.c + gtmcrypt_ref.h + gtmcrypt_interface.h + gtmxc_types.h + maskpass.c + gtmcrypt_dbk_ref.c + gtmcrypt_dbk_ref.h + gtmcrypt_pk_ref.c + gtmcrypt_pk_ref.h + gtmcrypt_sym_ref.h + install.sh + build.sh + pinentry.m + ) +foreach(f ${gtmcrypt_source_tar}) + list(APPEND gtmcrypt_source_tar_depends ${GTM_SOURCE_DIR}/sr_unix/${f}) +endforeach() +add_custom_command( + OUTPUT plugin/gtmcrypt/source.tar + DEPENDS ${gtmcrypt_source_tar_depends} + COMMAND tar cf ${GTM_BINARY_DIR}/plugin/gtmcrypt/source.tar ${gtmcrypt_source_tar} + WORKING_DIRECTORY ${GTM_SOURCE_DIR}/sr_unix + VERBATIM + ) +list(APPEND files_to_place plugin/gtmcrypt/source.tar) +install(FILES ${GTM_BINARY_DIR}/plugin/gtmcrypt/source.tar + DESTINATION ${GTM_INSTALL_DIR}/plugin/gtmcrypt) foreach(f add_db_key.sh