Hello Guys

I try to import a library and was now wondering if there's a
platform-independent way?
Here's my code:

  add_library(mylib SHARED IMPORTED)
  set_target_properties(mylib PROPERTIES
    IMPORTED_LOCATION ${CPPLIB_DIR}/libmylib.so)

But now what about using this CMakeLists.txt file under Windows? Can't
I just specifie a path? When I do so I get the following error message
from the linker:

  /usr/bin/ld: cannot find ../../core/build: File format not recognized

So he is just linking the path instead of the library.

Thanks for your help!
Cheers Reza
--

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

Reply via email to