This adds some CPack configuration to ESMA_cmake that allows one to run make package_source or make dist in a build directory and the code will be tarred up for the user.
Note that due to ecbuild oddities, the include(esma_cpack) needs to be done after the call to ecbuild_install_project so that our CPack wins over ecbuild's. Thus we can't just have this include in the esma.cmake file. Dang.
This adds some CPack configuration to ESMA_cmake that allows one to run
make package_source
ormake dist
in a build directory and the code will be tarred up for the user.Note that due to ecbuild oddities, the
include(esma_cpack)
needs to be done after the call toecbuild_install_project
so that our CPack wins over ecbuild's. Thus we can't just have this include in theesma.cmake
file. Dang.