Added Boost support

This commit is contained in:
Daniel Wolf 2015-11-03 15:31:13 +01:00
parent 713e8b5d7f
commit 721795c137
2 changed files with 11 additions and 1 deletions

View File

@ -150,6 +150,7 @@
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include-fixed" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include-fixed" />
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/c++" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/c++" />
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/ssp" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/ssp" />
<root url="file://$MODULE_DIR$/../../lib/boost_1_59_0" />
<root url="file://$MODULE_DIR$/lib/cppformat" /> <root url="file://$MODULE_DIR$/lib/cppformat" />
<root url="file://$MODULE_DIR$/lib/pocketsphinx-5prealpha-2015-08-05/include" /> <root url="file://$MODULE_DIR$/lib/pocketsphinx-5prealpha-2015-08-05/include" />
<root url="file://$MODULE_DIR$/lib/sphinxbase-5prealpha-2015-08-05/include" /> <root url="file://$MODULE_DIR$/lib/sphinxbase-5prealpha-2015-08-05/include" />
@ -160,6 +161,7 @@
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include-fixed" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include-fixed" />
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/c++" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/c++" />
<root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/ssp" /> <root url="file://C:/MinGW/lib/gcc/mingw32/4.8.1/include/ssp" />
<root url="file://$MODULE_DIR$/../../lib/boost_1_59_0" />
<root url="file://$MODULE_DIR$/lib/cppformat" /> <root url="file://$MODULE_DIR$/lib/cppformat" />
<root url="file://$MODULE_DIR$/lib/pocketsphinx-5prealpha-2015-08-05/include" /> <root url="file://$MODULE_DIR$/lib/pocketsphinx-5prealpha-2015-08-05/include" />
<root url="file://$MODULE_DIR$/lib/sphinxbase-5prealpha-2015-08-05/include" /> <root url="file://$MODULE_DIR$/lib/sphinxbase-5prealpha-2015-08-05/include" />

View File

@ -3,6 +3,13 @@ project(LipSync)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 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) 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") 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 POCKETSPHINX "lib/pocketsphinx-5prealpha-2015-08-05/src/libpocketsphinx/*.c")
FILE(GLOB CPPFORMAT "lib/cppformat/*.cc") FILE(GLOB CPPFORMAT "lib/cppformat/*.cc")
add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT}) add_executable(LipSync ${SOURCE_FILES} ${SPHINX_BASE} ${POCKETSPHINX} ${CPPFORMAT})
target_link_libraries(LipSync ${Boost_LIBRARIES})