summaryrefslogtreecommitdiff
path: root/word-aligner
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 /word-aligner
parent24cee877f2bb4b490495ea578564d0266b1addd3 (diff)
migration to cmake
Diffstat (limited to 'word-aligner')
-rw-r--r--word-aligner/CMakeLists.txt10
-rw-r--r--word-aligner/Makefile.am12
2 files changed, 10 insertions, 12 deletions
diff --git a/word-aligner/CMakeLists.txt b/word-aligner/CMakeLists.txt
new file mode 100644
index 00000000..baf85b31
--- /dev/null
+++ b/word-aligner/CMakeLists.txt
@@ -0,0 +1,10 @@
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../utils)
+
+set(fast_align_SRCS
+ fast_align.cc
+ ttables.cc
+ da.h
+ ttables.h)
+add_executable(fast_align ${fast_align_SRCS})
+target_link_libraries(fast_align utils ${Boost_LIBRARIES} z)
+
diff --git a/word-aligner/Makefile.am b/word-aligner/Makefile.am
deleted file mode 100644
index 071e4977..00000000
--- a/word-aligner/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-bin_PROGRAMS = fast_align binderiv
-
-fast_align_SOURCES = fast_align.cc ttables.cc da.h ttables.h
-fast_align_LDADD = ../utils/libutils.a
-fast_align_LDFLAGS = $(STATIC_FLAGS)
-
-binderiv_SOURCES = binderiv.cc
-binderiv_LDADD = ../utils/libutils.a
-
-EXTRA_DIST = aligner.pl ortho-norm support makefiles stemmers
-
-AM_CPPFLAGS = -W -Wall -I$(top_srcdir) -I$(top_srcdir)/utils -I$(top_srcdir)/training