Hi, is there a way to tell CMake how to "compile" files based on their extension?
For example, here's a make rule to build an object file from a *.lst file: %.o : %.lst echo "#include \"irx_imports.h\"" > build-imports.c cat $< >> build-imports.c $(IOP_CC) $(IOP_CFLAGS) build-imports.c -o $@ -rm -f build-imports.c How can I convert this to CMake? I considered using add_custom_target, but I don't know how to apply it to all files with the same extension. -Mathias _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake