[CMake] equivalent target for Makefile construct

William A. Hoffman billlist at nycap.rr.com
Fri Feb 4 10:49:34 EST 2005


You may also want to look at the FAQ:

http://www.cmake.org/Wiki/CMake_FAQ


At 08:40 AM 2/4/2005, Brad King wrote:
>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
>_______________________________________________
>CMake mailing list
>CMake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list