在CMakeList.txt文件中添加以下代码get
FILE(GLOB_RECURSE LibFiles "include/*.h") add_custom_target(headers SOURCES ${LibFiles})List