[CMake] add_custom_command
Michael Wild
themiwi at gmail.com
Fri Oct 19 02:54:42 EDT 2012
On 10/17/2012 08:05 PM, Totte Karlsson wrote:
>
> On 10/16/2012 12:49 AM, Michael Wild wrote:
>> This will always work:
>>
>> add_executable(frobnicate frobnicate.c)
>>
>> add_custom_command(OUTPUT ${resultFile}
>> COMMAND frobnicate ${resultFileFolder}
>> WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
>> COMMENT "Generating Wiki reports"
>> VERBATIM)
>>
>> add_custom_target(generateReports ALL DEPENDS ${resultFile})
>
> This worked perfectly for both CodeGear and VisualStudio.
>
> Thanks!
> Totte
>
You're very welcome, I'm glad it solved your issue.
Michael
More information about the CMake
mailing list