Skip to content

Commit

Permalink
readded the global regen target to regenerate all typekits within a c…
Browse files Browse the repository at this point in the history
…make workspace

...as suggested here: #23 (comment)

Signed-off-by: Johannes Meyer <[email protected]>
  • Loading branch information
meyerj committed Dec 3, 2014
1 parent 5ac25bf commit 9998ce0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/orogen/templates/typekit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,17 @@ ENDIF ( NOT CMAKE_BUILD_TYPE )
find_package(Orocos-RTT 2 REQUIRED)
include(${OROCOS-RTT_USE_FILE})

ADD_CUSTOM_TARGET(<%= typekit.name %>-regen
add_custom_target(<%= typekit.name %>-regen
<% ruby_bin = RbConfig::CONFIG['RUBY_INSTALL_NAME']
typegen_bin = 'typegen' %>
<%= typegen_bin %> <%= Orocos::Generation.command_line_options.join(" ") %>
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/<%= Orocos::Generation.relative_generation_directory %>)

if(NOT TARGET regen)
add_custom_target(regen)
endif()
add_dependencies(regen <%= typekit.name %>-regen)

<% end %>
# END if typekit.standalone?
##
Expand Down

0 comments on commit 9998ce0

Please sign in to comment.