diff --git a/.idea/LipSync.iml b/.idea/LipSync.iml index b27a0fa..ada0c35 100644 --- a/.idea/LipSync.iml +++ b/.idea/LipSync.iml @@ -150,6 +150,7 @@ + @@ -160,6 +161,7 @@ + diff --git a/CMakeLists.txt b/CMakeLists.txt index 881e167..fde5194 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,13 @@ project(LipSync) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") +# Find Boost libraries +set(Boost_USE_STATIC_LIBS ON) # Use static libs +set(Boost_USE_MULTITHREADED ON) # Enable multithreading support +set(Boost_USE_STATIC_RUNTIME ON) # Use static C++ runtime +find_package(Boost REQUIRED COMPONENTS filesystem locale ) +include_directories(${Boost_INCLUDE_DIRS}) + 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) include_directories("lib/sphinxbase-5prealpha-2015-08-05/include" "lib/pocketsphinx-5prealpha-2015-08-05/include" "lib/cppformat") @@ -10,4 +17,5 @@ FILE(GLOB_RECURSE SPHINX_BASE "lib/sphinxbase-5prealpha-2015-08-05/src/libsphinx FILE(GLOB POCKETSPHINX "lib/pocketsphinx-5prealpha-2015-08-05/src/libpocketsphinx/*.c") FILE(GLOB CPPFORMAT "lib/cppformat/*.cc") -add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT}) \ No newline at end of file +add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT}) +target_link_libraries(LipSync ${Boost_LIBRARIES})