forked from HIT-SCIR/ltp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 1.2 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required (VERSION 2.8.0)
project ("LTP - Language Technology Platform")
# project attributes section
# -- config cmake modules path
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
if (APPLE)
add_definitions(-DGTEST_HAS_TR1_TUPLE=0)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-c++11-narrowing")
endif(APPLE)
if (MINGW)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-narrowing -fpermissive")
endif (MINGW)
# -- config output directories
set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
set (INCLUDE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/include)
# -- config source directories
set (SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set (THIRDPARTY_DIR ${PROJECT_SOURCE_DIR}/thirdparty)
set (TOOLS_DIR ${PROJECT_SOURCE_DIR}/tools)
# -- config resource directories
set (CONFIGURE_DIR ${PROJECT_SOURCE_DIR}/conf)
set (MODEL_DIR ${PROJECT_SOURCE_DIR}/ltp_data)
set (DATA_DIR ${PROJECT_SOURCE_DIR}/test_data)
# compiling section
# -- compile shipped libraries
add_subdirectory (thirdparty)
# -- compile source code
add_subdirectory (src)
# testing section
# -- generate configure file for ltp_test