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

Various cmake improvements #10

Open
wants to merge 18 commits into
base: omemo
Choose a base branch
from
Open

Various cmake improvements #10

wants to merge 18 commits into from

Conversation

Ri0n
Copy link

@Ri0n Ri0n commented Apr 30, 2024

initial problem was missing protobuf-c on windows.

So added various way of building with protobuf-c suitable probably for every imaginable case.
Also added installation of cmake config files to make it super easy to use libomemo from other cmake projects.

For example I can build a bundled/static version with

cmake -DCMAKE_INSTALL_PREFIX=../omemo-static-install -DBUILD_WITH_PROTOBUF=bundled -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Debug ~/projects/psi/qomemo/

and then use it like

list(PREPEND CMAKE_PREFIX_PATH /home/rion/temp/omemo-static-install)
find_package(omemo-c)
target_link_libraries(mytarget omemo-c::omemo-c)

@Neustradamus
Copy link

@mar-v-in, @fiaxh: What do you think about this PR?

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.

3 participants