Get package version directly from ament

This commit is contained in:
Christophe Bedard 2019-06-17 11:15:57 +02:00
parent e7ed83217e
commit d0425d2c57
3 changed files with 3 additions and 3 deletions

View file

@ -99,3 +99,5 @@ if(BUILD_TESTING)
endif()
ament_package()
add_definitions("-D${PROJECT_NAME}_VERSION=\"${${PROJECT_NAME}_VERSION}\"")