Create two nodes in the same package
I'm using catkin package with one node (cpp file).
I want to add one more node (cpp file) in the same package but I get this error during the compilation:
-- +++ processing catkin package: 'kinectueye'
-- ==> add_subdirectory(kinectueye) CMake Error at kinectueye/CMakeLists.txt:180 (add_executable): add_executable cannot create target "kinectueye" because another target with the same name already exists. The existing target is an executable created in source directory "/home/jros/catkin_ws/src/kinectueye". See documentation for policy CMP0002 for more details.
the package is called kinectueye and the kinectueye (the same name) is the executable of the first node.
How can I make one package with two nodes ?