I have a linker script that I'd like to export for dependent projects to use as if it were an actual library. I'm having trouble figuring out how to do this.
With a linker script named "libmylib.so" I've tried: set(LIBNAME mylib) add_library(mylib INTERFACE) install(TARGETS mylib EXPORT MyExport ARCHIVE DESTINATION ${LIB_INSTALL_DIR}) install(FILES libmylib.so ${LIB_INSTALL_DIR}) This will install the script properly, but attempting to use the linker script in the dependent project fails: target_link_libraries(myapp mylib) doesn't add mylib to the link line with the proper directory location (no -L option for the library location). Any help appreciated, -- Andrew Bell andrew.bell...@gmail.com
-- 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: https://cmake.org/mailman/listinfo/cmake