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 ?
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 ?