CMakeLists.txt 869 B

1234567891011121314151617181920212223242526272829303132
  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)