rhasspy / piper-phonemize

C++ library for converting text to phonemes for Piper
MIT License
89 stars 77 forks source link

cmake: Allow to build with system libraries and other improvements #31

Open cryptomilk opened 8 months ago

cryptomilk commented 8 months ago

This patchset allows you to build piper-phonemize with system libraries instead of fetching sources from the internet. For this a new option has been introduced BUILD_EXTERNAL which will enable building with external sources. The default in cmake is OFF in the Makefile it is ON.

This also generates a cmake config file so you can consume the library using find_package(piper_phonemize) from other cmake files. It also fixes some issues if you use it as an external project.

You can see it building for openSUSE against system libraries here:

https://build.opensuse.org/package/show/home:gladiac/piper-phonemize

albassort commented 4 months ago

This is good and very useful! Please merge