Monday, 15 February 2010

Better way to use cmake commands directly as custom command instead of wrapper scripts? -



Better way to use cmake commands directly as custom command instead of wrapper scripts? -

currently have ~4 scripts wrap around simple cmake commands "file(copy ...)" or "configure_file(...)" can utilize them -p flag in custom commands like:

add_custom_target( ${target}_tmp_resources command ${cmake_command} -dfiles_list="${${target}_resources}" -ddestination="${build_intermediate_dir}/${target}/bin/assets" -dexclude_ext=".svn .git cvs .ds_store" -p ${root_dir}/cmake/scripts/copyfiles.cmake depends "${target}_tmp_bin_dir" comment "collecting resource files..." )

the -e flag looks want, unfortunately supports few platform commands according documentation.

so, there improve way utilize cmake commands in custom commands without running cmake in script mode , having write these simple scripts?

cmake

No comments:

Post a Comment