[CMake] Faking a library
Magnus Therning
magnus at therning.org
Sat Oct 19 03:59:48 EDT 2013
On Sat, Oct 19, 2013 at 11:28:53AM +0400, Игорь Пашев wrote:
> 2013/10/19 Magnus Therning <magnus at therning.org>:
> > Is it possible to put the include path in some property on the library
> > as well, to avoid using a separate variable for that?
>
> SET_TARGET_PROPERTIES (target PROPERTIES <VARIABLE-NAME> <VARIABLE-VALUE>)
Of course, but then how do I use it conveniently?
Would it be possible, by choosing a good property name, to simply do
target_include_directories(one_test PRIVATE
target
)
Or would I have to
get_target_property(INC_DIR target <variable-name>)
target_include_directories(one_test PRIVATE
${INC_DIR}
)
in which case using a property wouldn't give me very much.
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: magnus at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
The British have "the perfect temperament to be hackers--technically
skilled, slightly disrespectful of authority, and just a touch of
criminal behavior".
-- Mary Ann Davidson, Oracle's Security Chief
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131019/3b5a0904/attachment.pgp>
More information about the CMake
mailing list