CMake: scripts improvements


git-svn-id: svn://svn.code.sf.net/p/zenlib/code/ZenLib/trunk@489 f098ebc7-0e84-4588-8ad0-e2271d839f10