ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A
Ask Your Question

where does {catkin_LIBRARIES} refer to, in package [closed]

asked 2016-03-17 04:24:49 -0500

DinnerHowe gravatar image

hi guys, i am learning tutorial catkinCMakeLists.txt , but i only understand the variable ${PROJECT_NAME}.

there are still lots of variables i do not understand or sure about it, like:

where do

${catkin_LIBRARIES} (is that ~/work_space/src/package_name/include ??)





${${PROJECT_NAME}_SRCS}) (is that ~/work_space/src/package_name/src ??)








locate in

and catkin_package( INCLUDE_DIRS include (is that ~/work_space/src/package_name/include ??)

LIBRARIES ${PROJECT_NAME} (??? where it is???)

CATKIN_DEPENDS roscpp (haha i understand this, it's refer to location of ros package, like roscpp is /opt/ros/indigo/share/roscpp)

DEPENDS eigen opencv) (should cmake projects under the path ~/work_space/src, before i use find_package marco ?)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by DinnerHowe
close date 2016-09-06 05:09:56.130804

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-17 12:55:43 -0500

ahendrix gravatar image

updated 2016-03-17 12:56:43 -0500

I believe the catkin cmake documentation and catkin cmake variables will answer most of your questions.

edit flag offensive delete link more


awesome!! and thanks a lot, there is still one question left. ${catkin_LIBRARIES} does not mention in both website.

DinnerHowe gravatar imageDinnerHowe ( 2016-03-18 05:29:14 -0500 )edit

Section 5.2 of the catkin cmake documentation describes how find_package(catkin ...) sets up the catkin_INCLUDE_DIRS and other variables, which includes catkin_LIBRARIES.

ahendrix gravatar imageahendrix ( 2016-03-18 12:27:07 -0500 )edit

in short, cakin_LIBRARIES is the list of all of the libraries (targets and real libraries) that you need to compile against the dependencies you specified in find_package(catkin ...)

ahendrix gravatar imageahendrix ( 2016-03-18 12:28:18 -0500 )edit

that makes sense, thank you again!

DinnerHowe gravatar imageDinnerHowe ( 2016-03-20 20:48:03 -0500 )edit

Question Tools

1 follower


Asked: 2016-03-17 04:23:15 -0500

Seen: 4,303 times

Last updated: Mar 17 '16