Robotics StackExchange | Archived questions

where does {catkin_LIBRARIES} refer to, in package

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

${catkinLIBRARIES} (is that ~/workspace/src/package_name/include ??)

${CATKINDEVELPREFIX}

${CATKINPACKAGEPYTHON_DESTINATION}

${BoostINCLUDEDIRS}

${catkinINCLUDEDIRS}

${${PROJECTNAME}SRCS}) (is that ~/workspace/src/packagename/src ??)

${${PROJECTNAME}EXPORTED_TARGETS}

${CATKINPACKAGELIB_DESTINATION}

${CATKINPACKAGEBIN_DESTINATION}

${CATKINPACKAGEPYTHON_DESTINATION}

${CATKINPACKAGEINCLUDE_DESTINATION}

${CATKINGLOBALINCLUDE_DESTINATION}

${CATKINPACKAGESHARE_DESTINATION}

locate in

and catkinpackage( INCLUDEDIRS include (is that ~/workspace/src/packagename/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 ~/workspace/src, before i use findpackage marco ?)

Asked by DinnerHowe on 2016-03-17 04:23:15 UTC

Comments

Answers

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

Asked by ahendrix on 2016-03-17 12:55:43 UTC

Comments

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

Asked by DinnerHowe on 2016-03-18 05:29:14 UTC

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.

Asked by ahendrix on 2016-03-18 12:27:07 UTC

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 ...)

Asked by ahendrix on 2016-03-18 12:28:18 UTC

that makes sense, thank you again!

Asked by DinnerHowe on 2016-03-20 20:48:03 UTC

thanks, i like

Asked by Panason on 2019-10-20 02:35:13 UTC