2015-09-10 18:05:05 +00:00
|
|
|
cmake_minimum_required(VERSION 3.3)
|
|
|
|
project(LipSync)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2015-09-17 19:47:58 +00:00
|
|
|
set(SOURCE_FILES src/main.cpp src/audio_input/WaveFileReader.cpp src/audio_input/WaveFileReader.h src/audio_input/ChannelDownmixer.cpp src/audio_input/ChannelDownmixer.h src/audio_input/AudioStream.h src/audio_input/SampleRateConverter.cpp src/audio_input/SampleRateConverter.h src/audio_input/16kHzMonoStream.cpp src/audio_input/16kHzMonoStream.h src/audio_input/WaveFileWriter.cpp src/audio_input/WaveFileWriter.h src/audio_input/IOTools.h)
|
2015-09-10 19:31:25 +00:00
|
|
|
|
2015-09-17 19:46:05 +00:00
|
|
|
include_directories("lib/sphinxbase-5prealpha-2015-08-05/include" "lib/pocketsphinx-5prealpha-2015-08-05/include" "lib/cppformat")
|
2015-09-10 19:31:25 +00:00
|
|
|
FILE(GLOB_RECURSE SPHINX_BASE "lib/sphinxbase-5prealpha-2015-08-05/src/libsphinxbase/*.c")
|
|
|
|
FILE(GLOB POCKETSPHINX "lib/pocketsphinx-5prealpha-2015-08-05/src/libpocketsphinx/*.c")
|
2015-09-17 19:46:05 +00:00
|
|
|
FILE(GLOB CPPFORMAT "lib/cppformat/*.cc")
|
2015-09-10 19:31:25 +00:00
|
|
|
|
2015-09-17 19:46:05 +00:00
|
|
|
add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT})
|