From 6cbdccb1d9a62b2723b962ba4b6e66f1631e48d3 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Tue, 3 Mar 2015 01:14:07 -0500 Subject: migration to cmake --- CMakeLists.txt | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') 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) + -- cgit v1.2.3