[CMake] How to manipulate each string in a list?
Jin Huang
hj at cad.zju.edu.cn
Thu Mar 25 04:06:41 EDT 2010
Dear all,
I am a newbie of cmake, and have googled some times for this question.
I'm sorry if it's a naive question.
The typical operation is to make replacement on each string in a list.
In GNU Make, I can use the following code for such tasks:
HEADER = $(patsubst %.cpp, %.h, $(SRC))
HEADER_WITH_DIR = $(patsubst %, include/%, $(HEADER))
Now I can only use foreach iteration to construct a new list in CMake.
Is there any simple command to do this?
Best regards,
Jin
More information about the CMake
mailing list