Remove dependency on boost

This commit is contained in:
Michael Hansen
2022-10-24 16:07:33 -05:00
parent 14696f2960
commit 344b483904
2 changed files with 87 additions and 54 deletions

View File

@@ -22,23 +22,19 @@ target_compile_definitions(larynx PUBLIC HAVE_PCAUDIO)
set(PCAUDIO_LIBRARIES "pcaudio")
endif()
find_package(Boost 1.3.0 REQUIRED COMPONENTS program_options)
set(ONNXRUNTIME_ROOTDIR "/usr/local/include/onnxruntime")
target_link_libraries(larynx
onnxruntime
${ESPEAK_NG_LIBRARIES}
${PCAUDIO_LIBRARIES}
Boost::program_options)
${PCAUDIO_LIBRARIES})
target_link_directories(larynx PUBLIC
${ONNXRUNTIME_ROOTDIR}/lib)
target_include_directories(larynx PUBLIC
${ONNXRUNTIME_ROOTDIR}/include
${ESPEAK_NG_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS})
${ESPEAK_NG_INCLUDE_DIRS})
target_compile_options(larynx PUBLIC
${ESPEAK_NG_CFLAGS_OTHER})