Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2011-08-26 16:14:58 -0500

sam gravatar image

Why CMakeLists's rosbuild_add_executable couldn't have a name 'test'?

My package couldn't generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test src/t.cpp)

My package can generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test2 src/t.cpp)

I found that only the name 'test',it failed to generate an executable file.

What happened? I use ROS diamondback.

Thank you~

Why CMakeLists's rosbuild_add_executable couldn't have a name 'test'?

My package couldn't generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test src/t.cpp)

My package can generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test2 src/t.cpp)

I found that only the name 'test',it failed to generate an executable file.

What happened? I use ROS diamondback.

Thank you~

Why CMakeLists's rosbuild_add_executable couldn't have a name 'test'?

My package couldn't generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test src/t.cpp)

My package can generate executable file when CMakeLists has a line:

  rosbuild_add_executable(test2 src/t.cpp)

I found that only the name 'test',it failed to generate an executable file.

What happened? I use ROS diamondback.

Thank you~