Cmake provides add_custom_target, but that creates a target that gets run either always (ALL) or manually by running make <target>.

Cmake also provides an add_custom_command that tracks file dependencies and gets run when a dependency changes. However, add_custom_command assumes the files are always intermediate files (ie. not targets) and for the command to actually appear in the Makefile, the output of the command has to have been added to add_executable or similar.

Is there a way to create an add_custom_target that tracks dependencies? Or an add_custom_command that will act as a target (without needlessly being added to add_executable, etc).

Basically, I'm trying to have a macro that compiles NVidia's .cg files to profile shaders and as such the shaders are targets that depend on the cg files.

--
Gonzalo Garramuño
[EMAIL PROTECTED]

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to