[CMake] Batch converting several files
Martin Fischer
m_fischer at users.sf.net
Tue Mar 18 03:15:49 EDT 2008
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 <m_fischer at users.sf.net> 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.
More information about the CMake
mailing list