-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
75 lines (57 loc) · 2.4 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.21)
project(tevr_asr_tool)
set(CMAKE_CXX_STANDARD 14)
add_executable(tevr_asr_tool tevr_asr_tool.cc op_erf.cc)
add_subdirectory(tensorflow_src/tensorflow/lite)
target_link_libraries(tevr_asr_tool tensorflow-lite absl::flags absl::flags_parse)
find_package(Threads)
macro(install)
endmacro()
macro(find_package)
endmacro()
include(kenlm/cmake/KenLMFunctions.cmake)
list(APPEND CMAKE_MODULE_PATH kenlm/cmake/modules)
find_package(Boost 1.41.0 REQUIRED COMPONENTS
program_options
system
thread
unit_test_framework
)
include_directories(${Boost_INCLUDE_DIRS})
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
add_subdirectory(kenlm/util)
add_subdirectory(kenlm/lm)
target_link_libraries(tevr_asr_tool kenlm)
add_library(wave
${PROJECT_SOURCE_DIR}/wave/src/wave/header/data_header.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header/data_header.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/header/riff_header.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header/riff_header.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/header/fmt_header.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header/fmt_header.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/header/wave_header.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header/wave_header.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/header.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/header_list.h
${PROJECT_SOURCE_DIR}/wave/src/wave/header_list.cc
${PROJECT_SOURCE_DIR}/wave/src/wave/error.h
${PROJECT_SOURCE_DIR}/wave/src/wave/file.h
${PROJECT_SOURCE_DIR}/wave/src/wave/file.cc
)
target_include_directories(wave PUBLIC ${PROJECT_SOURCE_DIR}/wave/src)
target_link_libraries(tevr_asr_tool wave)
_install(TARGETS tevr_asr_tool)
_install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/tevr-asr-data/" DESTINATION "/usr/share/tevr_asr_tool")
set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Hajo Nils Krabbenhöft")
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS OFF)
set(CPACK_PACKAGE_VERSION "1.0.0")
set(CPACK_PACKAGE_VERSION_MAJOR 1)
set(CPACK_PACKAGE_VERSION_MINOR 0)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_FILE_NAME "tevr_asr_tool-1.0.0-Linux-x86_64")
set(CPACK_PACKAGE_DESCRIPTION "German speech recognition with TEVR as a command-line tool" )
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.27), libgcc1 (>= 1:4.7), libstdc++6 (>= 6)" )
include(CPack)