CMake can not determine linker language
Hey guys,
I'm attempting to run the pcl_visualizer_demo.cpp found here: http://pointclouds.org/documentation/...
I have taken the _demo off the .cpp file and in the CMakeLists.txt.
I ran:
catkin_create_pkg pcl_visualizer roscpp std_msgs rospy
I then placed the pcl_visualizer.cpp in the catkin_ws/src/pcl_visualizer/src folder
this is my full CMakeLists.txt file, as specified by the tutorial linked above, with only the _demo removed from the appropriate places. (note that I still get the same error even with _demo being included and the package being named appropriately for that as well).
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
project(pcl_visualizer)
find_package(PCL 1.2 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable (pcl_visualizer pcl_visualizer.cpp)
target_link_libraries (pcl_visualizer ${PCL_LIBRARIES})
When I run the catkin_make, I get this error:
CMake Error: CMake can not determine linker language for target: pcl_visualizer
CMake Error: Cannot determine link language for target "pcl_visualizer".
Does anyone have any suggestions as to what could be causing this?