You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
869 B

  1. ADD_CUSTOM_TARGET(copy_scripts)
  2. SET(script_files go_mean mk_mean_script.sh mk_new_gnuplot.sh
  3. perlib_plot_settings.txt action_settings.txt gnuplot_common_settings.hh )
  4. FOREACH(script_file ${script_files})
  5. ADD_CUSTOM_COMMAND(
  6. TARGET copy_scripts
  7. POST_BUILD
  8. COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${script_file} ${CMAKE_CURRENT_BINARY_DIR}/
  9. ARGS
  10. )
  11. ENDFOREACH(script_file)
  12. ADD_CUSTOM_COMMAND(
  13. TARGET copy_scripts
  14. POST_BUILD
  15. COMMAND ${CMAKE_CXX_COMPILER} --version | head -n 1 > ${CMAKE_CURRENT_BINARY_DIR}/compiler_version.txt
  16. ARGS
  17. )
  18. ADD_CUSTOM_COMMAND(
  19. TARGET copy_scripts
  20. POST_BUILD
  21. COMMAND echo "${Eigen_SOURCE_DIR}" > ${CMAKE_CURRENT_BINARY_DIR}/eigen_root_dir.txt
  22. ARGS
  23. )
  24. add_executable(smooth smooth.cxx)
  25. add_executable(regularize regularize.cxx)
  26. add_executable(main mean.cxx)
  27. add_dependencies(main copy_scripts)