[CMake] CMAKE -- MAKE problem -- TARGET_LINK_LIBRARIES related
Lucian Goron
luciangoron at gmail.com
Tue May 18 04:46:52 EDT 2010
this is my problem.. it tells me that it can not find the levmar package:
lucian at schwarz:~/work/ransac$ make
Linking CXX executable TestAcquireGPS
/usr/bin/ld: cannot find -llevmar
collect2: ld returned 1 exit status
make[2]: *** [TestAcquireGPS] Error 1
make[1]: *** [CMakeFiles/TestAcquireGPS.dir/all] Error 2
make: *** [all] Error 2
lucian at schwarz:~/work/ransac$
but, in my CMakeLists.txt file I have the following lines:
INCLUDE_DIRECTORIES (../common/levmar)
LINK_DIRECTORIES (../../common/levmar)
ADD_EXECUTABLE (TestAcquireGPS TestAcquireGPS.cpp
AcquireGPS.cpp)
TARGET_LINK_LIBRARIES (TestAcquireGPS vtkCommon vtkRendering vtkWidgets
vtkHybrid vtkGraphics ann lapack levmar)
What am I missing ?
Thank you in advance !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100518/277d548c/attachment.htm>
More information about the CMake
mailing list