summaryrefslogtreecommitdiff
path: root/klm/lm/builder/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-03-03 01:14:07 -0500
committerChris Dyer <redpony@gmail.com>2015-03-03 01:14:07 -0500
commit6cbdccb1d9a62b2723b962ba4b6e66f1631e48d3 (patch)
tree686d2e294f8a69cad620fced60106fcb1f6cac8e /klm/lm/builder/CMakeLists.txt
parent24cee877f2bb4b490495ea578564d0266b1addd3 (diff)
migration to cmake
Diffstat (limited to 'klm/lm/builder/CMakeLists.txt')
-rw-r--r--klm/lm/builder/CMakeLists.txt31
1 files changed, 31 insertions, 0 deletions
diff --git a/klm/lm/builder/CMakeLists.txt b/klm/lm/builder/CMakeLists.txt
new file mode 100644
index 00000000..5fb1b2d2
--- /dev/null
+++ b/klm/lm/builder/CMakeLists.txt
@@ -0,0 +1,31 @@
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../..)
+
+set(lmplz_SRCS
+ lmplz_main.cc
+ adjust_counts.cc
+ adjust_counts.hh
+ corpus_count.cc
+ corpus_count.hh
+ discount.hh
+ hash_gamma.hh
+ header_info.hh
+ initial_probabilities.cc
+ initial_probabilities.hh
+ interpolate.cc
+ interpolate.hh
+ joint_order.hh
+ multi_stream.hh
+ ngram.hh
+ ngram_stream.hh
+ pipeline.cc
+ pipeline.hh
+ print.cc
+ print.hh
+ sort.hh)
+
+add_executable(lmplz ${lmplz_SRCS})
+target_link_libraries(lmplz klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES})
+
+set(dump_counts_SRCS print.cc dump_counts_main.cc)
+add_executable(dump_counts ${dump_counts_SRCS})
+target_link_libraries(dump_counts klm klm_util_double klm_util_stream klm_util ${Boost_LIBRARIES})