-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
40 lines (27 loc) · 1.02 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 3.0)
project(tts_dict_test LANGUAGES C CXX)
set(PROJECT_ROOT_DIR ${PROJECT_SOURCE_DIR})
set(CMAKE_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 \
-Wall -Wno-sign-compare -Wno-unused-local-typedefs \
-Wno-deprecated-declarations -Winit-self -Wno-deprecated-register \
-Wno-uninitialized \
-msse -msse2 -pthread \
-DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H \
-g")
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules)
set(CMAKE_PREFIX_PATH $ENV{CONDA_PREFIX})
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_ROOT_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_ROOT_DIR}/lib)
include_directories(${CMAKE_CURRENT_LIST_DIR}/src)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
#add_subdirectory(tools/openfst)
FILE(GLOB SOURCES
src/*.cc
)
add_library(tts_dict_lib MODULE ${SOURCES})
target_link_libraries(tts_dict_lib m pthread dl)
# bin
add_executable(tts_dict test.cc ${SOURCES})
# link lib
target_link_libraries(tts_dict m pthread dl)