My CMakeLists.txt
contains this line:
file(GLOB lib_srcs Half/half.cpp Iex/*.cpp IlmThread/*.cpp Imath/*.cpp IlmImf/*.cpp)
and the IlmImf
folder contains b44ExpLogTable.cpp
, which I need to exclude from the build.
How to achieve that?
My CMakeLists.txt
contains this line:
file(GLOB lib_srcs Half/half.cpp Iex/*.cpp IlmThread/*.cpp Imath/*.cpp IlmImf/*.cpp)
and the IlmImf
folder contains b44ExpLogTable.cpp
, which I need to exclude from the build.
How to achieve that?
FILTER is another option which could be more convenient in some cases:
This line excludes every item ending with the required filename:
Here is Regex Specification for cmake:
You can use the
list
function to manipulate the list, for example:In your case, maybe something like this will work: