[CMake] equivalent target for Makefile construct
Brad King
brad.king at kitware.com
Fri Feb 4 08:40:57 EST 2005
Alexander Stippler wrote:
> I'm quite new to CMake and just evaluating it as an alternative to
> autotools. I'm just trying to port one of my projects to CMake and do
> not know how to transform a certain Makefile to it. Perhaps someone can
> give me a hint how the equivalent to the following targets would be
> modelled with CMake:
>
> CUTEE=./cutee
> t_runners=views.cutee.cc.
>
> %.cutee.cc: $(srcdir)/%.h
> $(CUTEE) -o $@ $<
>
>
> runtest.cc: cutee
> $(CUTEE) -m -o $@
>
> How are such constructions realized?
This is a custom command. Use the ADD_CUSTOM_COMMAND command. See the
documentation here:
http://www.cmake.org/HTML/Documentation.html
or run "cmake --help-command ADD_CUSTOM_COMMAND".
-Brad
More information about the CMake
mailing list