-
Notifications
You must be signed in to change notification settings - Fork 14
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-targets.patch to build shared libraries #6
Comments
Wait, what. What do you want to do and why? |
i want to unbundle btogre from stuntrally, because bundled libraries are not allowed in Fedora packages. |
Well what's the relation to this repo then? Make them unbundle it. |
I have no relation with any repo, i only want to unbundle btogre from stundrally. |
As far as I'm aware, the recommended way of using btogre is by actually linking it statically because it is so small. |
Linking it statically doesn't make it bundled? |
it exists on http://devel.japh.se/aur/btogre-git/cmake-targets.patch a patch, with it btogre builds with a static library (/usr/lib/libBtOgre.a.)
I tried to build btogre with shared libraries (/usr/lib64/libbtogre.so.1.0), but i don't know how to
patch CMakeLists.txt.
Only what i know is, that there must something in CMakeLists.txt like this, but i am not a programmer.
set(BtOgre_MAJOR_VERSION 1)
set(BtOgre_MINOR_VERSION 0)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
if(BUILD_SHARED_LIBS)
set(BtOgre_LIBRARY_TYPE SHARED)
else(BUILD_SHARED_LIBS)
set(BtOgre_LIBRARY_TYPE STATIC)
endif(BUILD_SHARED_LIBS)
set(BtOgre_LIBRARY "BtOgre")
file(GLOB BtOgre_HEADERS "${PROJECT_SOURCE_DIR}/include/*.h")
set_target_properties(BtOgre PROPERTIES PUBLIC_HEADER "${BtOgre_HEADERS}")
set_target_properties(${BtOgre_LIBRARY} PROPERTIES SOVERSION "${BtOgre_MAJOR_VERSION}.${BtOgre_MINOR_VERSION}")
if(BUILD_SHARED_LIBS)
install(TARGETS ${BtOgre_LIBRARY}
LIBRARY DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION lib${LIB_SUFFIX})
else(BUILD_SHARED_LIBS)
install(TARGETS ${BtOgre_LIBRARY}
ARCHIVE DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION lib${LIB_SUFFIX})
endif(BUILD_SHARED_LIBS)
can you help me ?
The text was updated successfully, but these errors were encountered: