-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
26 lines (19 loc) · 706 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
project(FuzzyMatch)
cmake_minimum_required(VERSION 3.5.1)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
if(TARGET OpenNMTTokenizer)
set(OPENNMT_TOKENIZER_LIB OpenNMTTokenizer)
set(OPENNMT_TOKENIZER_INCLUDE "") # Resolved via the target.
else()
find_library(OPENNMT_TOKENIZER_LIB OpenNMTTokenizer REQUIRED HINTS ${OPENNMT_TOKENIZER_ROOT}/lib)
find_path(OPENNMT_TOKENIZER_INCLUDE onmt/Tokenizer.h REQUIRED HINTS ${OPENNMT_TOKENIZER_ROOT}/include)
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(src)
if (NOT LIB_ONLY)
add_subdirectory(cli)
endif()
if (NOT CLI_ONLY AND NOT LIB_ONLY)
add_subdirectory(test)
endif()