-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
51 lines (39 loc) · 2.47 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
project(examples)
cmake_minimum_required(VERSION 3.10)
if (UNIX)
set(TTS_LINK_LIBRARIES "-lpthread -l${CMAKE_DL_LIBS}" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wfatal-errors -pedantic -Wall -Wextra -Wconversion -Werror=return-type")
endif()
################################################################################
## simpleSynthesis ##
################################################################################
file(GLOB EXAMPLE_TTS_SOURCES "source/simpleSynthesis.cc" "source/loader.cc")
file(GLOB EXAMPLE_TTS_HEADERS "source/loader.hh" "source/tts.h")
source_group("Header Files" FILES ${EXAMPLE_TTS_HEADERS})
add_executable(example_tts ${EXAMPLE_TTS_SOURCES} ${EXAMPLE_TTS_HEADERS})
target_link_libraries(example_tts ${TTS_LINK_LIBRARIES})
set_target_properties(example_tts PROPERTIES
OUTPUT_NAME "example_tts"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
################################################################################
## streamingSynthesis ##
################################################################################
file(GLOB EXAMPLE_TTS_STREAM_SOURCES "source/streamingSynthesis.cc" "source/loader.cc")
file(GLOB EXAMPLE_STREAM_TTS_HEADERS "source/loader.hh" "source/tts.h")
source_group("Header Files" FILES ${EXAMPLE_STREAM_TTS_HEADERS})
add_executable(example_tts_streaming ${EXAMPLE_TTS_STREAM_SOURCES} ${EXAMPLE_STREAM_TTS_HEADERS})
target_link_libraries(example_tts_streaming ${TTS_LINK_LIBRARIES})
set_target_properties(example_tts_streaming PROPERTIES
OUTPUT_NAME "example_tts_streaming"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
################################################################################
## template ##
################################################################################
file(GLOB EXAMPLE_TTS_TEMPLATE_SOURCES "source/template.cc" "source/loader.cc")
file(GLOB EXAMPLE_TTS_TEMPLATE_HEADERS "source/loader.hh" "source/tts.h")
source_group("Header Files" FILES ${EXAMPLE_TTS_TEMPLATE_HEADERS})
add_executable(example_tts_template ${EXAMPLE_TTS_TEMPLATE_SOURCES} ${EXAMPLE_TTS_TEMPLATE_HEADERS})
target_link_libraries(example_tts_template ${TTS_LINK_LIBRARIES})
set_target_properties(example_tts_template PROPERTIES
OUTPUT_NAME "example_tts_template"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )