Hello, I use gengetopt to generate command line parser for my application. The configuration file *.ggo also specifies programs version like this:
# Name of your program package "hwtest" # don't use package if you're using automake # Version of your program version "1.2.1" # don't use version if you're using automake .... I'd like to automatically extract these version numbers and assign them to CPACK_PACKAGE_VERSION_MAJOR, CPACK_PACKAGE_VERSION_MINOR and CPACK_PACKAGE_VERSION_PATCH What were the best solution for my problem? Thank you in advance. Best regards, Yegor _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
