cmake: fix make-clean as add_custom_command() deletes output files.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 27 Jan 2017 15:34:25 +0000 (13:34 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 27 Jan 2017 15:42:29 +0000 (13:42 -0200)
commit47920696342c62276c8159ebcc9d0381e2faee41
tree4a43d9a6e787b0b2cb3c8a806ebc1dd18c47ed32
parent525d1e062975f732c54e40074d15500cdcaa4cb4
cmake: fix make-clean as add_custom_command() deletes output files.

there is no way to mark output file as "precious", then cmake's
suggestion is to use add_custom_target() instead.

However that will always execute, so our generator script needs to be
smarter and only touch stuff when actually needed.
src/lib/ector/CMakeLists.txt
src/lib/ector/gl/shader/gen_shaders.sh