Skip to content

Commit

Permalink
Do not create plugin/gtmcrypt/source.tar
Browse files Browse the repository at this point in the history
It is up to configure or gtminstall to do this.  CMake should
just install the content.
  • Loading branch information
bradking committed Jun 19, 2012
1 parent 849daf7 commit 3b4bcd7
Showing 1 changed file with 13 additions and 30 deletions.
43 changes: 13 additions & 30 deletions CMakeLists.txt
Expand Up @@ -303,46 +303,29 @@ 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
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
build.sh
encrypt_sign_db_key.sh
gen_keypair.sh
gen_sym_hash.sh
gen_sym_key.sh
gtmcrypt.tab
gtmcrypt_dbk_ref.c
gtmcrypt_dbk_ref.h
gtmcrypt_interface.h
gtmcrypt_pk_ref.c
gtmcrypt_pk_ref.h
gtmcrypt_ref.c
gtmcrypt_ref.h
gtmcrypt_sym_ref.h
gtmxc_types.h
import_and_sign_key.sh
install.sh
maskpass.c
pinentry-gtm.sh
pinentry.m
pinentry.m
)
set(f_in "${GTM_SOURCE_DIR}/sr_unix/${f}")
set(f_out "${GTM_BINARY_DIR}/plugin/gtmcrypt/${f}")
Expand Down

0 comments on commit 3b4bcd7

Please sign in to comment.