forked from pool/qwtplot3d
Atri Bhattacharya
f2ede991c5
Switch to a Qt5 snapshot OBS-URL: https://build.opensuse.org/request/show/698902 OBS-URL: https://build.opensuse.org/package/show/science/qwtplot3d?expand=0&rev=8
32 lines
937 B
Diff
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}")
|