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

Build Rhubarb as shared library #137

Open
JuliusNmn opened this issue Feb 1, 2024 · 0 comments
Open

Build Rhubarb as shared library #137

JuliusNmn opened this issue Feb 1, 2024 · 0 comments

Comments

@JuliusNmn
Copy link

Is anyone else interested in using rhubarb as a shared library? i'm no cmake expert, but i hacked around in rhubarb/CMakeLists.txt and got it to build a shared library.

# ... rhubarb-lib
add_library(rhubarb-lib
	src/lib/rhubarbLib.cpp
	src/lib/rhubarbLib.h
)

to

# ... rhubarb-lib
add_library(rhubarb-lib SHARED
	src/lib/rhubarbLib.cpp
	src/lib/rhubarbLib.h
)

i had to modify my header search paths and actually got it to run, but it's hacky. i would prefer it to build a shared library and provide an include dir.

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

No branches or pull requests

1 participant