[CMake] Adding program arguments for Debug configuration

Dmytro Ovdiienko dmitriy.ovdienko at gmail.com
Sun May 17 17:20:10 EDT 2009


Alexandru,

Debug parameters are stored to the *.*user file. CMake does not create this
file. Suppose you should add this parameters yourself or store user file
once and copy it to the vcproj folder.

2009/5/17 Alexandru Duţu <alex.dutu at gmail.com>

> Hello,
>
> I am new to CMake, and I've been searching the web for a solution to this
> problem also CMake wiki and I found nothing concludent.
> I am using Windows XP SP3 and Visual Studio 2008.
>
> I am trying to include program arguments in debug configuration, without
> arguments I can'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
>
> "ADD_CUSTOM_COMMAND(
>>     TARGET DICOMVolRenderer
>>     POST_BUILD
>>     COMMAND DICOMVolRenderer -DICOM ${DICOM_DATA} -Clip -CT_Bone
>>     DEPENDS DICOMVolRenderer -DICOM ${DICOM_DATA}
>> )"
>
>
> but this just calls my program after every build with my arguments.
> Is there any cmake command for this?
> Is there a solution for this?
>
> Please help me this is bugging me for some days.
>
> Alex
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090518/8a96ab4c/attachment.htm>


More information about the CMake mailing list