summaryrefslogtreecommitdiff
path: root/example_extff
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
commit95183b5760d7f168ae093ae8f9b29740628a278f (patch)
tree4c213e940a80a08d60141d11ec35cbe8f17d4755 /example_extff
parentc7b2a39958912d7b85a384a871609e6db73042c7 (diff)
migration to cmake
Diffstat (limited to 'example_extff')
-rw-r--r--example_extff/CMakeLists.txt10
-rw-r--r--example_extff/Makefile.am5
2 files changed, 10 insertions, 5 deletions
diff --git a/example_extff/CMakeLists.txt b/example_extff/CMakeLists.txt
new file mode 100644
index 00000000..5170a0b2
--- /dev/null
+++ b/example_extff/CMakeLists.txt
@@ -0,0 +1,10 @@
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../utils)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../mteval)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../klm)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../decoder)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+set(ff_example_LIB_SRCS ff_example.cc)
+add_library(ff_example SHARED ${ff_example_LIB_SRCS})
+target_link_libraries(ff_example libcdec utils)
+set_target_properties(ff_example PROPERTIES VERSION 1.0.0 SOVERSION 1)
diff --git a/example_extff/Makefile.am b/example_extff/Makefile.am
deleted file mode 100644
index 6abfe6c5..00000000
--- a/example_extff/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-AM_CPPFLAGS = -DBOOST_TEST_DYN_LINK -W -Wall -Wno-sign-compare -I$(top_srcdir) -I$(top_srcdir)/mteval -I$(top_srcdir)/utils -I$(top_srcdir)/klm -I$(top_srcdir)/decoder
-
-lib_LTLIBRARIES = libff_example.la
-libff_example_la_SOURCES = ff_example.cc
-libff_example_la_LDFLAGS = -version-info 1:0:0 -module