LBL-EESA / TECA_superbuild

A superbuild script for TECA and its third party dependencies.
4 stars 0 forks source link

add cmake code for packaging binaries #4

Open burlen opened 8 years ago

burlen commented 8 years ago

add cmake code for packaging binaries see #3

jeff-cohere commented 8 years ago

Hey Burlen,

I've not done this with CPack before. Do you have any examples you can point me at?

burlen commented 8 years ago

I don't have a good one for you. this looks like a reasonable place to start https://cmake.org/Wiki/CMake:Packaging_With_CPack

burlen commented 7 years ago

here is Jeff's patch, don't want to loose it, I'm abt to delete his branch ` @@ -306,3 +306,27 @@ if (ENABLE_TECA) -DTECA_HAS_VTK=OFF LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1) endif() + +#-------------------------------------------------------------- +# Binary packaging +#-------------------------------------------------------------- + +# Metadata. +set(CPACK_PACKAGE_NAME "TECA") +set(CPACK_PACKAGE_VENDOR "cascade.lbl.gov") +set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "TECA - A parallel toolkit for extreme climate analysis") +set(CPACK_PACKAGE_VERSION_MAJOR "2") +set(CPACK_PACKAGE_VERSION_MINOR "0") +set(CPACK_PACKAGE_VERSION_PATCH "0") +set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") +set(CPACK_PACKAGE_INSTALL_DIRECTORY "TECA") + +# Installation targets -- we are really only concerned with executables. +install(FILES ${CMAKE_INSTALL_PREFIX}/bin/teca_ar_detect