summaryrefslogtreecommitdiff
path: root/training
diff options
context:
space:
mode:
Diffstat (limited to 'training')
-rw-r--r--training/dpmert/CMakeLists.txt8
-rw-r--r--training/dtrain/CMakeLists.txt11
-rw-r--r--training/mira/CMakeLists.txt4
-rw-r--r--training/pro/CMakeLists.txt8
4 files changed, 31 insertions, 0 deletions
diff --git a/training/dpmert/CMakeLists.txt b/training/dpmert/CMakeLists.txt
index 382af070..6250ca43 100644
--- a/training/dpmert/CMakeLists.txt
+++ b/training/dpmert/CMakeLists.txt
@@ -28,6 +28,14 @@ set(mr_dpmert_reduce_SRCS
add_executable(mr_dpmert_reduce ${mr_dpmert_reduce_SRCS})
target_link_libraries(mr_dpmert_reduce dpmert training_utils libcdec ksearch mteval utils klm klm_util klm_util_double ${Boost_LIBRARIES} z)
+add_custom_command(TARGET mr_dpmert_reduce
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/dpmert.pl ${CMAKE_CURRENT_BINARY_DIR})
+
+add_custom_command(TARGET mr_dpmert_reduce
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/divide_refs.py ${CMAKE_CURRENT_BINARY_DIR})
+
set(mr_dpmert_generate_mapper_input_SRCS mr_dpmert_generate_mapper_input.cc)
add_executable(mr_dpmert_generate_mapper_input ${mr_dpmert_generate_mapper_input_SRCS})
diff --git a/training/dtrain/CMakeLists.txt b/training/dtrain/CMakeLists.txt
index 8423675f..027c80e4 100644
--- a/training/dtrain/CMakeLists.txt
+++ b/training/dtrain/CMakeLists.txt
@@ -13,3 +13,14 @@ set(dtrain_SRCS
score.h)
add_executable(dtrain ${dtrain_SRCS})
target_link_libraries(dtrain libcdec ksearch mteval utils klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${LIBDL_LIBRARIES})
+
+
+add_custom_command(TARGET dtrain
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/lplp.rb ${CMAKE_CURRENT_BINARY_DIR})
+
+add_custom_command(TARGET dtrain
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/parallelize.rb ${CMAKE_CURRENT_BINARY_DIR})
+
+
diff --git a/training/mira/CMakeLists.txt b/training/mira/CMakeLists.txt
index 55ca03e2..0d22f134 100644
--- a/training/mira/CMakeLists.txt
+++ b/training/mira/CMakeLists.txt
@@ -11,6 +11,10 @@ set(kbest_cut_mira_SRCS kbest_cut_mira.cc)
add_executable(kbest_cut_mira ${kbest_cut_mira_SRCS})
target_link_libraries(kbest_cut_mira libcdec ksearch mteval utils klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${LIBDL_LIBRARIES})
+add_custom_command(TARGET kbest_cut_mira
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/mira.py ${CMAKE_CURRENT_BINARY_DIR}/mira.py)
+
set(ada_opt_sm_SRCS ada_opt_sm.cc)
add_executable(ada_opt_sm ${ada_opt_sm_SRCS})
target_link_libraries(ada_opt_sm training_utils libcdec ksearch mteval utils klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${LIBDL_LIBRARIES})
diff --git a/training/pro/CMakeLists.txt b/training/pro/CMakeLists.txt
index 5ee09a74..5be1ab39 100644
--- a/training/pro/CMakeLists.txt
+++ b/training/pro/CMakeLists.txt
@@ -10,6 +10,14 @@ set(mr_pro_map_SRCS mr_pro_map.cc)
add_executable(mr_pro_map ${mr_pro_map_SRCS})
target_link_libraries(mr_pro_map training_utils libcdec ksearch mteval utils klm klm_util klm_util_double ${Boost_LIBRARIES} z)
+add_custom_command(TARGET mr_pro_map
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/mr_pro_generate_mapper_input.pl ${CMAKE_CURRENT_BINARY_DIR})
+
+add_custom_command(TARGET mr_pro_map
+ POST_BUILD
+ COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/pro.pl ${CMAKE_CURRENT_BINARY_DIR})
+
########### next target ###############
set(mr_pro_reduce_SRCS mr_pro_reduce.cc)