Create an imported interface instead of a static library. Then you can set either INTERFACE_COMPILE_OPTIONS or INTERFACE_LINK_LIBRARIES properties.
2016-08-27 21:39 GMT+02:00 Yaron Cohen-Tal <yaro...@gmail.com>: > Hi, > > I try to make an imported target out of OpenGL, and I have some > difficulty. Usually "OPENGL_gl_LIBRARY" is a full path (found with > "find_library"), but sometimes (on Windows) it's a pathless library (e.g. > "opengl32", set with the cmake command "set"). However an imported library > requires the full path to the library. Any idea how to tackle it? > > Thanx, > Yaron > > -- > > 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://public.kitware.com/mailman/listinfo/cmake > -- *Benjamin BALLET* Ingénieur R&D *ACTIVISU* 19, rue Klock - 92110 Clichy *> Standard Tél* : 01 44 69 37 37 *>* www.activisu.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: http://public.kitware.com/mailman/listinfo/cmake