Open burlen opened 8 years ago
Hey Burlen,
I've not done this with CPack before. Do you have any examples you can point me at?
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
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
+# This line always comes last. +include(CPack) `
add cmake code for packaging binaries see #3