10
0
forked from pool/qwtplot3d
Files
qwtplot3d/build_a_shared_lib.patch
Dominique Leuenberger eeadb77549 Accepting request 699673 from science
- Update to version 0.2.7+git20190410.a6d0890d
  Switch to a git snapshot. This version supports Qt5 which is
  required to build scidavis 1.25.
- Drop glu_include.patch
- Drop qwtplot3d-gcc43.patch
- Add build_a_shared_lib.patch to build shared library.

OBS-URL: https://build.opensuse.org/request/show/699673
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qwtplot3d?expand=0&rev=2
2019-05-02 17:18:16 +00:00

32 lines
937 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 312690d..334bf30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -171,16 +171,22 @@ endif()
set(SOURCES ${SOURCES} ${MOC_FILES})
-add_library(qwtplot3d STATIC ${SOURCES} ${HEADERS})
-QT_BIND_TO_TARGET(qwtplot3d)
+add_library(qwtplot3d-qt5 SHARED ${SOURCES} ${HEADERS})
+QT_BIND_TO_TARGET(qwtplot3d-qt5)
+
+target_link_libraries(qwtplot3d-qt5 GL GLU)
if (ZLIB_FOUND)
-target_link_libraries(qwtplot3d ${ZLIB_LIBRARIES})
+target_link_libraries(qwtplot3d-qt5 ${ZLIB_LIBRARIES})
endif(ZLIB_FOUND)
+set_target_properties(qwtplot3d-qt5 PROPERTIES
+ VERSION 0.2.7
+ SOVERSION 0
+)
install(FILES ${HEADERS} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
-INSTALL(TARGETS qwtplot3d
+INSTALL(TARGETS qwtplot3d-qt5
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")