[cmake-developers] INTERFACE_LIBRARY target type
Stephen Kelly
steveire at gmail.com
Thu Aug 29 09:53:31 EDT 2013
Stephen Kelly wrote:
>
> Hi there,
>
> I've rebased and pushed the INTERFACE_LIBRARY-target-type branch to my
> clone again.
>
See also proof of concept here:
https://github.com/purpleKarrot/BoostCMake/pull/1
which is the ongoing work to use CMake for boost using ALIAS targets,
INTERFACE targets, EXPORT_NAME, usage requirements etc.
It allows this to 'just work':
cmake_minimum_required(VERSION 2.8.11) # 2.8.13
project(Test)
find_package(BoostAny REQUIRED)
add_executable(someexe main.cpp)
target_link_libraries(someexe boost::any)
For boost, a few more interesting INTERFACE features will be needed
eventually, but one step at a time... :)
Thanks,
Steve.
More information about the cmake-developers
mailing list