2011/2/2 Michael Wild <them...@gmail.com>:
>
> Put a CMakeLists.txt file in a/ and b/ and do the include_directories()
> and add_library() calls in there. That's the only way to have separate
> include directories since there is no corresponding target property
> (which admittedly would be nice to have).

As a workaround may be COMPILE_FLAGS is usable for this particular purpose

add_library(a MODULE a/a.cpp)
set_target_properties(a PROPERTIES COMPILE_FLAGS
"-I${CMAKE_CURRENT_SOURCE_DIR}/a")

since "-I" is AFAIK relatively standard compiler flags, this should work.

now having a proper "INCLUDE_DIRS" property on target would certainly be better.

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to