2008-07-09 22:04:48 +08:00
|
|
|
|
|
|
|
ADD_CUSTOM_TARGET(copy_scripts)
|
|
|
|
|
2008-08-05 07:12:48 +08:00
|
|
|
SET(script_files go_mean mk_mean_script.sh mk_new_gnuplot.sh
|
|
|
|
perlib_plot_settings.txt action_settings.txt gnuplot_common_settings.hh )
|
2008-07-09 22:04:48 +08:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2008-07-13 05:41:32 +08:00
|
|
|
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
|
|
|
|
)
|
|
|
|
|
2008-07-09 22:04:48 +08:00
|
|
|
add_executable(smooth smooth.cxx)
|
|
|
|
add_executable(regularize regularize.cxx)
|
|
|
|
add_executable(main mean.cxx)
|
|
|
|
add_dependencies(main copy_scripts)
|