summaryrefslogtreecommitdiff
path: root/decoder/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-04-09 00:18:27 -0700
committerChris Dyer <redpony@gmail.com>2015-04-09 00:18:27 -0700
commit638e28db2b2146e8920ec105792d2b03a0de5c3e (patch)
tree80995ea6379462ca1b9c8aeb8e5559111a9613d8 /decoder/CMakeLists.txt
parentb5aaa40ef7c9d216ae905b76f50e68a8f94656c9 (diff)
fix kenlm's use of compression libraries
Diffstat (limited to 'decoder/CMakeLists.txt')
-rw-r--r--decoder/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/decoder/CMakeLists.txt b/decoder/CMakeLists.txt
index b49d6477..ad800588 100644
--- a/decoder/CMakeLists.txt
+++ b/decoder/CMakeLists.txt
@@ -151,7 +151,7 @@ add_library(libcdec STATIC ${libcdec_SRCS})
set(cdec_SRCS cdec.cc)
add_executable(cdec ${cdec_SRCS})
-target_link_libraries(cdec libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${LIBDL_LIBRARIES})
+target_link_libraries(cdec libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES} ${LIBDL_LIBRARIES})
set(TEST_SRCS
grammar_test.cc
@@ -169,7 +169,7 @@ foreach(testSrc ${TEST_SRCS})
add_executable(${testName} ${testSrc})
#link to Boost libraries AND your targets and dependencies
- target_link_libraries(${testName} libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES})
+ target_link_libraries(${testName} libcdec mteval utils ksearch klm klm_util klm_util_double ${Boost_LIBRARIES} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} ${LIBLZMA_LIBRARIES})
#I like to move testing binaries into a testBin directory
set_target_properties(${testName} PROPERTIES
@@ -181,5 +181,3 @@ foreach(testSrc ${TEST_SRCS})
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endforeach(testSrc)
-
-