strands-project / v4r_ros_wrappers

ROS wrappers for the V4R library
9 stars 15 forks source link

Export Library path #1

Closed ToMadoRe closed 9 years ago

ToMadoRe commented 9 years ago

Would need help for this: https://github.com/strands-project/v4r_ros_wrappers/blob/master/singleview_object_recognizer/CMakeLists.txt#L78

marc-hanheide commented 9 years ago

I think, you should set V4R up properly in cmake. In fact it should probably install its own cmake module, e.g. read http://www.cmake.org/Wiki/CMake/Tutorials/Packaging

You can set any variables in the V4R specific CMake module and simply use find_package in here and in any other repos that use V4R

marc-hanheide commented 9 years ago

That said, I found you already create a cmake module from v4rConfig.cmake.in so you could just use that to set V4R_DIR correctly?