Hello,<br><br>I am new to CMake, and I&#39;ve been searching the web for a solution to this problem also CMake wiki and I found nothing concludent.<br>I am using Windows XP SP3 and Visual Studio 2008.<br><br>I am trying to include program arguments in debug configuration, without arguments I can&#39;t debug, normally in VS this is done by going to Project/Settings/Debugging/Command Arguments. If I am using a CMake for build configuration, by setting the arguments from VS it has no effect, so I thought I must include the arguments in CMakeList.txt. From web searching I came up with this<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">&quot;ADD_CUSTOM_COMMAND(<br>    TARGET DICOMVolRenderer<br>    POST_BUILD<br>    COMMAND DICOMVolRenderer -DICOM ${DICOM_DATA} -Clip -CT_Bone<br>
    DEPENDS DICOMVolRenderer -DICOM ${DICOM_DATA}<br>)&quot;</blockquote><div><br>but this just calls my program after every build with my arguments.<br>Is there any cmake command for this?<br>Is there a solution for this?<br>
<br>Please help me this is bugging me for some days.<br><br>Alex<br></div>