Ask Your Question
0

Is it possible to make a menu within a catkin build?

asked 2015-05-22 22:05:08 -0600

Nap gravatar image

I'ld like to be able choose my build options during the catkin_make process. I know it can be done using a bash script, but I'm wondering if it can be done within catkin?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-05-22 23:09:59 -0600

ahendrix gravatar image

You can do this by adding cmake configuration variables to your cmakelists, like this: http://stackoverflow.com/questions/72...

Note that these won't (and shouldn't) prompt you for input at build time; instead, you can set the value of these variables using the -D flag to catkin_make (or cmake):

catkin_make -DMY_VARIABLE=42
edit flag offensive delete link more

Comments

Thanks, I'm already doing that. But I wanted to make it a little easier so the users wouldn't need to remember/type the variables.

Nap gravatar imageNap ( 2015-05-23 02:26:24 -0600 )edit

Making the build system interactive for every run is probably more annoying than useful. I haven't tried the -i option to cmake, but perhaps it's appropriate in this scenario? http://www.cmake.org/runningcmake/

ahendrix gravatar imageahendrix ( 2015-05-24 02:31:20 -0600 )edit

The -i option has been removed from cmake as of version 3 onwards.

Nap gravatar imageNap ( 2015-05-28 02:26:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-05-22 22:05:08 -0600

Seen: 20 times

Last updated: May 22 '15