1
2
3
4
get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
foreach(dir ${dirs})
message(STATUS "dir='${dir}'")
endforeach()

参考

  1. http://stackoverflow.com/questions/6902149/listing-include-directories-in-cmake

留言

2015-01-29