diff --git a/CMakeLists.txt b/CMakeLists.txt index 03f8522ad5446547038d8ddb7d8d6fe154464667..7c650b6ed7a5f920723f117fc08002cc1d783588 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -416,3 +416,7 @@ add_subdirectory(paddle) if(WITH_PYTHON) add_subdirectory(python) endif() + +get_directory_property(all_inc_dirs INCLUDE_DIRECTORIES) +list(JOIN all_inc_dirs "\r\n" all_inc_dirs) +file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/includes.txt" ${all_inc_dirs})