CMake 中以下 make 文件代码的等价物是什么?
target: config_header $(OBJS)
g++ -o $(APPNAME) $(OBJS) $(LIBDIR) $(LIBS)
config_header:
echo "#ifndef _CONFIG_HEADER_H_" > Config.h
echo "#define _CONFIG_HEADER_H_" >> Config.h
echo "#define MAJOR_VERSION \"$(MAJOR)\"" >> Config.h
echo "#define MINOR_VERSION \"$(MINOR)\"" >> Config.h
echo "#define PATCH_VERSION \"$(PATCH)\"" >> Config.h
echo "#define RELEASE_VERSION \"$(RELEASE)\"" >> Config.h
echo "#endif" >> Config.h