Hello Martin, I wrote a quick tutorial (tested on Linux and Windows) for what you want to do:
http://www.cmake.org/Wiki/CMake:How_To_Process_Lots_Of_Input_Files Please let me know if this solves your problem. Andy On Tue, Mar 18, 2008 at 12:15 AM, Martin Fischer <[EMAIL PROTECTED]> wrote: > Andy, > > yes the ( is missing in my message. This happened when editing the post. > Both () are there in my CMakeLists file. > > Anyway, thanks for your assistance. I give up and will hardcode the > necessary commands. I prefer to work on the project instead of learning > CMake details. > > Regards > Martin > > > On 17.03.2008 22:26 Andy Lego wrote: > > You are missing a ( after the ADD_CUSTOM_COMMAND. > > > > > > On Mon, Mar 17, 2008 at 2:18 PM, Martin Fischer <[EMAIL PROTECTED]> wrote: > >> Hi Andy, > >> > >> it seems I don't understand the direction you are pointing me to. I > >> used add_custom_command in some occasions. So now I tried: > >> > >> FOREACH( FILE ${SOURCEFILES}) > >> ADD_CUSTOM_COMMAND ${FILE}.out > >> COMMAND ${tool_EXE} ${CMAKE_CURRENT_SOURCE_DIR}/${FILE}.in > >> > >> ${CMAKE_CURRENT_BINARY_DIR}/${FILE}.out > >> DEPEND tool ${FILE}.in > >> ) > >> ENDFOREACH( FILE ) > >> > >> CMake outputs: "Wrong syntax. Unknown type of argument" > >> > >> It looks like I'll go the less flexible way to code a list of commands > >> to execute. > > -- http://legoandy.com -o- http://capitalmtb.org Support my 150 mile bike ride to fight MS: http://bikecan.nationalmssociety.org/site/TR?px=3921627&pg=personal&fr_id=9066 _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
