On 7. September 2014 11:32:31 MESZ, Alexander Lamaison <[email protected]> 
wrote:
>What I would like is to be able to do is:
>
>add_executable(my_exe ${SOURCES})
>find_package(Foo)
>target_link_libraries(my_exe Foo)
>
>and have it Just Work.  Is that possible?

Yes, you just have to create an IMPORTED library target and manually set the 
INTERFACE_* properties for it. If you name the target with :: in it, then CMake 
knows that it's a target and not a library file base name.

HS

-- 

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

Reply via email to