[CMake] howto include libs ?
Reinhard Thies
Reinhard.Thies at web.de
Sun Feb 15 13:05:02 EST 2009
Thanks,
it helped, but now I get :
Linking C executable ds309
/usr/bin/ld: cannot find -llibconfuse
collect2: ld returned 1 exit status
and the lib is defenetly there. I assume it is not cmake related but do you
still have an idea ?
Many Thanks
Reinhard
On Sunday, 15. February 2009 16:41:53 Michael Jackson wrote:
> INCLUDE_DIRECTORIES( ccp )
> TARGET_LINK_LIBRARIES(ds309 libconfuse)
>
> in the Target_link_libraries command you must give the name of the
> target to link the libraries into as the first argument.
>
> _________________________________________________________
> Mike Jackson mike.jackson at bluequartz.net
> BlueQuartz Software www.bluequartz.net
> Principal Software Engineer Dayton, Ohio
>
> On Feb 15, 2009, at 9:54 AM, Reinhard Thies wrote:
> > INCLUDE_DIRECTORIES( . ccp )
> > TARGET_LINK_LIBRARIES(libconfuse)
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
More information about the CMake
mailing list