Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
TensorSpeech
GitHub Repository: TensorSpeech/TensorFlowTTS
Path: blob/master/examples/cpptflite/CMakeLists.txt
1558 views
1
cmake_minimum_required(VERSION 2.6)
2
PROJECT(TfliteTTS)
3
4
option(MAPPER "Processor select (supported BAKER or LJSPEECH)")
5
if (${MAPPER} STREQUAL "LJSPEECH")
6
add_definitions(-DLJSPEECH)
7
elseif (${MAPPER} STREQUAL "BAKER")
8
add_definitions(-DBAKER)
9
else ()
10
message(FATAL_ERROR "MAPPER is only supported BAKER or LJSPEECH")
11
endif()
12
13
message(STATUS "MAPPER is selected: "${MAPPER})
14
15
include_directories(lib)
16
include_directories(lib/flatbuffers/include)
17
include_directories(src)
18
19
aux_source_directory(src DIR_SRCS)
20
21
SET(CMAKE_CXX_COMPILER "g++")
22
23
SET(CMAKE_CXX_FLAGS "-O3 -DNDEBUG -Wl,--no-as-needed -ldl -pthread -fpermissive")
24
25
add_executable(demo demo/main.cpp ${DIR_SRCS})
26
27
find_library(tflite_LIB tensorflow-lite lib)
28
29
target_link_libraries(demo ${tflite_LIB})
30