I would like to use file(GLOB_RECURSE...
as follows:
file(GLOB_RECURSE _tmp_files
LIST_DIRECTORIES false
"${mydir}/*.cpp|${mydir}/*.h")
This -- along with variations such as ${mydir}/*{.cpp,.h}
-- yields an empty list.
However, this works as expected -- produces all the *.cpp
files in the ${mydir}
along with its subdirectories:
file(GLOB_RECURSE _tmp_files
LIST_DIRECTORIES false
"${mydir}/*.cpp")
So, does the file(
feature in CMake
indeed support "full" globbing? In particular, how to glob for a pattern {*.cpp,*.h}
using file(
?