Ask Your Question
0

help in cmakelists.txt

asked 2012-06-23 23:06:55 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hey,I need to that what should i do in cmakelists.txt http://pastebin.com/raw.php?i=BGV9NAmQ since i am getting this error (target_link_libraries): Cannot specify link libraries for target "ptedit_1" which is not built by this project.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-06-24 20:39:36 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

This error is because you are trying to link to a library "ptedit_1" which still do not exist. You probably expect cmake->makefile->make to generate "ptedit_1" library.

You must add following command to CMakeList.txt.

rosbuild_add_library(${PROJECT_NAME} your_source_files)

This will result in required library. Command target_link_libraries( ptedit_1 ${KDE4_KDEUI_LIBS} ) must come after rosbuild command.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-06-23 23:06:55 -0500

Seen: 140 times

Last updated: Jun 24 '12