-
Notifications
You must be signed in to change notification settings - Fork 23
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
Install Uno via CMake install #35
Comments
Hi @amontoison, do we need to install a static or a shared library? |
It depends what is the CMake option used by the user (
|
@cvanaret I think that your current build system only generate static libraries. |
Thanks for the example. add_library(uno_lib OBJECT ${UNO_SOURCE_FILES})
set_property(TARGET uno_lib PROPERTY POSITION_INDEPENDENT_CODE ON)
add_library(uno_shared SHARED $<TARGET_OBJECTS:uno_lib>)
set_target_properties(uno_shared PROPERTIES OUTPUT_NAME uno)
add_library(uno_static STATIC $<TARGET_OBJECTS:uno_lib>)
set_target_properties(uno_static PROPERTIES OUTPUT_NAME uno) Do we want to compile with PIC for the shared library and without for the static library? It'll be expensive but it most likely results in the most efficient static library. |
It's fine if they have the same name because the extension will be different. |
Add support to CMake install.
The text was updated successfully, but these errors were encountered: