[CMake] Dynamic targets

Johny Johny.Jose at cern.ch
Thu Sep 16 07:28:42 EDT 2010


Hey,

I was wondering whether there was some equivalent to way of getting the 
MAKECMDGOALS in the makefile generated by cmake and having targets which 
would be dynamic like this

VAR=$(MAKECMDGOALS)
VAREXE=$VAR.exe

$(VAREXE) : DEPEND1 DEPEND2
     COMMAND 1
     COMMAND 2

is it possible with cmake ??

Cheers,
Johny


More information about the CMake mailing list