Files
mathgl/mathgl-examples-install.patch
Atri Bhattacharya c105a590a2 * Update to version 8.0.3.
* Drop patches no longer required because they are fixed by upstream cmake changes: mathgl-no-default-qt.patch, mathgl-fix-python-module-path.patch
* Drop pinning of numpy to version 1; numpy2 supported now.
* Switch to Qt6; obsolete libmgl-qt5-8 package with libmgl-qt-8.
* Switch over BuildRequires to pkgconfig based ones where possible.

OBS-URL: https://build.opensuse.org/package/show/science/mathgl?expand=0&rev=129
2025-11-17 19:14:36 +00:00

69 lines
2.0 KiB
Diff

---
examples/CMakeLists.txt | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
Index: mathgl-8.0.3/examples/CMakeLists.txt
===================================================================
--- mathgl-8.0.3.orig/examples/CMakeLists.txt
+++ mathgl-8.0.3/examples/CMakeLists.txt
@@ -6,6 +6,10 @@ file(COPY ${CMAKE_SOURCE_DIR}/examples/s
file(COPY ${CMAKE_SOURCE_DIR}/examples/wnd_samples.cpp DESTINATION ${CMAKE_BINARY_DIR}/examples)
add_executable(mgl_example wnd_samples.cpp full_test.cpp samples.cpp)
target_link_libraries(mgl_example mgl-static ${getopt_lib-static})
+install(
+ TARGETS mgl_example
+ RUNTIME DESTINATION bin
+)
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND CMAKE_COMPILER_IS_GNUCXX AND enable-lcov)
setup_target_for_coverage(
NAME mgl_coverage
@@ -18,17 +22,29 @@ if(MGL_HAVE_FLTK)
include_directories(${FLTK_INCLUDE_DIR})
add_executable(mgl_fltk_example wnd_samples.cpp fltk_example.cpp)
target_link_libraries(mgl_fltk_example mgl-fltk)
+ install(
+ TARGETS mgl_fltk_example
+ RUNTIME DESTINATION bin
+ )
endif(MGL_HAVE_FLTK)
if(MGL_HAVE_GLUT)
add_executable(mgl_glut_example wnd_samples.cpp glut_example.cpp)
target_link_libraries(mgl_glut_example mgl-glut)
+ install(
+ TARGETS mgl_glut_example
+ RUNTIME DESTINATION bin
+ )
endif(MGL_HAVE_GLUT)
if(MGL_HAVE_WX)
include(${wxWidgets_USE_FILE})
add_executable(mgl_wx_example wnd_samples.cpp wx_example.cpp)
target_link_libraries(mgl_wx_example mgl-wx)
+ install(
+ TARGETS mgl_wx_example
+ RUNTIME DESTINATION bin
+ )
endif(MGL_HAVE_WX)
if(TARGET mgl-qt)
@@ -37,10 +53,18 @@ if(TARGET mgl-qt)
add_executable(mgl_qt_example wnd_samples.cpp qt_example.cpp)
target_link_libraries(mgl_qt_example mgl-qt)
+ install(
+ TARGETS mgl_qt_example
+ RUNTIME DESTINATION bin
+ )
if(MGL_HAVE_OPENGL)
add_executable(mgl_qgl_example wnd_samples.cpp qgl_example.cpp)
target_link_libraries(mgl_qgl_example mgl ${MGL_QT_LIBS})
+ install(
+ TARGETS mgl_qgl_example
+ RUNTIME DESTINATION bin
+ )
endif(MGL_HAVE_OPENGL)
endif(TARGET mgl-qt)