[CMake] add_custom_target and eclipse

Benoit benpaka.spam at gmail.com
Mon Mar 30 05:40:49 EDT 2009


Hello,

There is a little bug for the generation of eclipse MinGW project in cmake.
The thing is the custom targets are not added to the list of make target in
the .cproject.

For example if I want to add the doc target to generate my documentation
such as:

ADD_CUSTOM_TARGET(doc ALL COMMAND "${DOXYGEN_EXECUTABLE}"
"${PROJECT_BINARY_DIR}/${DOX_OUTPUT_DIRECTORY}/${PROJECT_NAME}.doxyfile")


I would like that the following line could be added to the .cproject.

<target name="doc" path=""
targetID="org.eclipse.cdt.make.MakeTargetBuilder">
<buildCommand>C:/MinGW/bin/mingw32-make.exe</buildCommand>
<buildArguments/>
<buildTarget>doc</buildTarget>
<stopOnError>true</stopOnError>
<useDefaultCommand>false</useDefaultCommand>
</target>

I don't know where to signal this bug request ... but i hope here is a good
place !!

--
Benoit RAT
www.neub.co.nr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090330/c7b80fe7/attachment.htm>


More information about the CMake mailing list