[CMake] is it possible to include_directories in same build not by relative path?

Thomas Fannes thomasfannes at gmail.com
Thu Oct 14 05:42:40 EDT 2010


Hello,

My project has the following structure:

root
  + lib
     + libA
     + libB
  + test
     + test1

test1 depends on libA and libB.

For the include path in test1 I now have to write something like:
include_directories(../../lib/libA ../../lib/libB)
isn't there an easier way as with linking the libraries?
target_link_libraries(test1 libA libB)

Kind regards,

Thomas


More information about the CMake mailing list