diff options
author | Chris Dyer <redpony@gmail.com> | 2015-03-03 01:14:07 -0500 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2015-03-03 01:14:07 -0500 |
commit | 6cbdccb1d9a62b2723b962ba4b6e66f1631e48d3 (patch) | |
tree | 686d2e294f8a69cad620fced60106fcb1f6cac8e /CMakeLists.txt | |
parent | 24cee877f2bb4b490495ea578564d0266b1addd3 (diff) |
migration to cmake
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..21c2a230 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,36 @@ +cmake_minimum_required(VERSION 2.8) + +add_definitions(-DKENLM_MAX_ORDER=6) +set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) +set(CMAKE_CXX_FLAGS "-Wall -std=c++11 -O3") +set(METEOR_JAR "" CACHE FILEPATH "Path to meteor.jar") + +enable_testing() +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +#### packages +find_package(ZLIB REQUIRED) +find_package(BZip2 REQUIRED) + +# for pycdec +find_package(PythonInterp 2.7 REQUIRED) + +find_package(Boost COMPONENTS regex filesystem serialization program_options unit_test_framework system thread REQUIRED) +include_directories(${Boost_INCLUDE_DIR}) + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) + +add_subdirectory(utils) +add_subdirectory(klm/util/double-conversion) +add_subdirectory(klm/util) +add_subdirectory(klm/util/stream) +add_subdirectory(klm/lm) +add_subdirectory(klm/lm/builder) +add_subdirectory(klm/search) +add_subdirectory(mteval) +add_subdirectory(decoder) +add_subdirectory(training) +add_subdirectory(word-aligner) +add_subdirectory(extractor) +add_subdirectory(example_extff) + |