That part may not be correct.

it should be target_link_libraries(myexe somelib)

CMake will look for variations of the name for the library. I think. At least I 
have never had to put a full path like at and I use .plugin for my libraries in 
my project and they work fine on OS X with Xcode.

You should be using the "find_library()" function to find your library which 
gets assigned to a CMake variable. Then you end up with something like this:

 FIND_LIBRARY(SOME_LIBRARY
  NAMES somelib
  PATHS /full/path/to/  )
target_link_libraries(myexe ${SOME_LIBRARY})

That really should work on Xcode without any issues.

Mike J.

On Mar 3, 2014, at 2:18 PM, Bjoern Sarrazin <[email protected]> wrote:

>> I use something like
>> 
>> target_link_libraries(myexe /full/path/to/somelib.so)

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to