Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

cryptomilk
Copy link

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

The option will enable fetching and building of dependencies. The
default is OFF to use system libraries instead.
If you import the project (Add_ExternalProject) CMAKE_SOURCE_DIR is
pointing to a different directory.
This way other cmake project can find the library using:

  find_package(piper_phonemize)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant