[CMake] Help with custom targets
Ulrik Mikaelsson
ulrik.mikaelsson at gmail.com
Sat Mar 3 10:10:55 EST 2007
Heya ppl,
I'm playing around with creating an enlightenment application using a
CMake build system.
As part of building most enlightenment 0.17 apps, the build system
must compile one or more resource-files called "edje" files. These
files are standalone UI-resources distributed separately, along with
the binaries and other resources.
My problem right now is that I would like to define my edje-resources
as special targets, and have them depend on their respective
source-files, but I haven't managed to make them behave as I want.
I've come pretty close using the ADD_CUSTOM_COMMAND() in OUTPUT mode,
but for some reason I have not been able to make the dependencies work
such that when I update the source-files, and run make, the compiled
resources are updated.
Any ideas? I've browsed through the FAQ and the docs without finding
anything on custom targets.
Regards
/ Ulrik
More information about the CMake
mailing list