Sunday, 15 January 2012

CMake target_include_directories meaning of scope -



CMake target_include_directories meaning of scope -

i new cmake , bit confused public, private , interface keywords related target_include_directories .

what mean?

the interface, public , private keywords required specify scope of next arguments. private , public items populate include_directories property of < target >. public , interface items populate interface_include_directories property of < target >. next arguments specify include directories.

from documentation: http://www.cmake.org/cmake/help/v3.0/command/target_include_directories.html

to rephrase documentation own words:

you want add together directory list of include directory target with private directory added target's include directories with interface target not modified, interface_include_directories extended directory. variable list of public include directories library. with public both actions private , interface performed.

cmake

No comments:

Post a Comment