[CMake] add_custom_target and eclipse

Alexander Neundorf a.neundorf-work at gmx.net
Mon Mar 30 13:22:20 EDT 2009


On Monday 30 March 2009, Benoit wrote:
> 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.

Which version of cmake ?
This has been changed recently, so if you are not using 2.6.3, it may be 
already fixed in 2.6.3.

> 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 !!

The cmake bug tracker ;-)

Alex


More information about the CMake mailing list