[CMake] add_custom_command
Totte Karlsson
totte at dunescientific.com
Wed Oct 17 14:05:15 EDT 2012
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
More information about the CMake
mailing list