-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (46 loc) · 1.76 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
cmake_minimum_required(VERSION 3.6)
project(shakespeare)
set(CMAKE_CXX_STANDARD 14)
if(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-framework CoreServices -framework AudioUnit -framework AudioToolbox -framework Carbon")
else()
set(CMAKE_CXX_FLAGS "-Os")
endif()
set(SOURCE_FILES
src/main.cpp
src/sb.h
src/graphics/RenderShakebot.cpp src/graphics/RenderShakebot.h
src/Shakebot.cpp src/Shakebot.h
src/tests.cpp src/tests.h
src/audio/speech.cpp src/audio/speech.h
src/audio/flac.cpp src/audio/flac.h
src/base64.cpp src/base64.h
src/audio/audio.h src/graphics/graphics.cpp src/graphics/graphics.h
src/cmd/Command.cpp src/cmd/Command.h
src/cmd/GreetingCommand.cpp src/cmd/GreetingCommand.h
src/net/RestClient.cpp src/net/RestClient.h
src/audio/AudioClient.cpp src/audio/AudioClient.h
src/audio/audio.cpp
src/cmd/WikiCommand.cpp src/cmd/WikiCommand.h src/net/rest.h)
add_executable(shakespeare ${SOURCE_FILES})
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIRS})
find_package(SFML REQUIRED system window graphics audio)
include_directories(${SFML_INCLUDE_DIR})
include_directories(/usr/local/opt/speech_tools/include)
if(NOT APPLE)
target_link_libraries(shakespeare rt m jack pthread asound estools eststring estbase)
endif()
target_link_libraries(shakespeare
${SFML_LIBRARIES}
${OPENGL_LIBRARIES}
ncurses
portaudio
FLAC++
FLAC
curl
Festival
/usr/local/opt/speech_tools/lib/libestools.a
/usr/local/opt/speech_tools/lib/libeststring.a
/usr/local/opt/speech_tools/lib/libestbase.a)