aboutsummaryrefslogtreecommitdiff
path: root/bench/btl/data/CMakeLists.txt
blob: 580c1ced0fb438971fabcbb023607ef087552da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

add_custom_target(copy_scripts)

set(script_files go_mean mk_mean_script.sh mk_new_gnuplot.sh
    perlib_plot_settings.txt action_settings.txt gnuplot_common_settings.hh )

foreach(script_file ${script_files})
add_custom_command(
  TARGET copy_scripts
  POST_BUILD
  COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/${script_file} ${CMAKE_CURRENT_BINARY_DIR}/
  ARGS
)
endforeach(script_file)

add_custom_command(
  TARGET copy_scripts
  POST_BUILD
  COMMAND ${CMAKE_CXX_COMPILER} --version | head -n 1 > ${CMAKE_CURRENT_BINARY_DIR}/compiler_version.txt
  ARGS
)
add_custom_command(
  TARGET copy_scripts
  POST_BUILD
  COMMAND echo "${Eigen_SOURCE_DIR}" > ${CMAKE_CURRENT_BINARY_DIR}/eigen_root_dir.txt
  ARGS
)

add_executable(smooth smooth.cxx)
add_executable(regularize regularize.cxx)
add_executable(main mean.cxx)
add_dependencies(main copy_scripts)