[cmake-developers] Setting include directories via target_link_libraries() ?
Alexander Neundorf
neundorf at kde.org
Thu Dec 6 15:21:29 EST 2012
On Thursday 06 December 2012, Alexander Neundorf wrote:
...
> I'd much prefer the following:
>
> find_package(Foo NO_MODULE)
>
> add_executable(hello main.cpp)
>
> target_use_targets(hello Foo::FooLibrary)
which could even warn if a used library doesn't have include directory
properties set, etc.
Alex
More information about the cmake-developers
mailing list