2022-01-10 23:56:54 +00:00
|
|
|
Index: mathgl-2.4.4+svn1661/examples/CMakeLists.txt
|
2012-12-16 11:28:01 +00:00
|
|
|
===================================================================
|
2022-01-10 23:56:54 +00:00
|
|
|
--- mathgl-2.4.4+svn1661.orig/examples/CMakeLists.txt
|
|
|
|
|
+++ mathgl-2.4.4+svn1661/examples/CMakeLists.txt
|
|
|
|
|
@@ -5,6 +5,10 @@ file(COPY ${CMAKE_SOURCE_DIR}/examples/s
|
Accepting request 592532 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Update to 2.4.2: (Fix AArch64 build)
* Add custom dialog for FLTK widgets. This can be constructed from
C/C++ code, or from MGL script using Special commentaries.
* Add progress for displaying the progress of execution (by ’#’
symbols in console, or by progress-bar widget).
* Add contp for contour lines on parametrically specified surface.
* Add flow3 for flow threads of 3D vector field, which start from
the plain.
* Add variant of flow for drawing a flow thread, starting from
specified point.
* Add scaletext for disabling text size scaling in relative
inplot-s (like columnplot, ...).
* Add setup for setting all low-level flags.
* Add coil for projecting periodical data.
* Add modulo operation ‘%’ (x%y=fmod(x,y)) to the list of known
operations in real-valued formulas.
* Add style ‘.’ for cont to draw contour lines from saddle points.
* Add style ‘.’ for flow to draw flow thread from saddle points.
* Add option value in tube for setting number of edges manually.
* Crop output of ode if NAN or INFINITY value occurs.
* Remove style ‘~’ for plot and tens. Now, all curves try to omit
points.
* Add setup flag MGL_FULL_CURV which disable omitting points of curve.
* Shift axis labels closer to axis.
* Change size of LaTeX-like commands \sup, \sub to be the same as
\overset, \underset.
* Change ticks drawing in colorbar.
* Add new section All samples of documentation with large set of
samples for most of MathGL features.
* Samples in documentation are generated automatically now
(from sample.cpp).
* INCOMPATIBLE: Make obsolete MGL command setsizescl. At this, the
similar C/C++/Fortran/... functions still working.
* Bugfixes.
- Rebase patch:
* mathgl-examples-install.patch
OBS-URL: https://build.opensuse.org/request/show/592532
OBS-URL: https://build.opensuse.org/package/show/science/mathgl?expand=0&rev=92
2018-03-30 10:29:17 +00:00
|
|
|
file(COPY ${CMAKE_SOURCE_DIR}/examples/wnd_samples.cpp DESTINATION ${CMAKE_BINARY_DIR}/examples)
|
2012-12-16 11:28:01 +00:00
|
|
|
add_executable(mgl_example wnd_samples.cpp full_test.cpp samples.cpp)
|
2016-10-18 12:04:47 +00:00
|
|
|
target_link_libraries(mgl_example mgl-static ${getopt_lib-static})
|
2012-08-22 01:14:25 +00:00
|
|
|
+install(
|
|
|
|
|
+ TARGETS mgl_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+)
|
Accepting request 592532 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Update to 2.4.2: (Fix AArch64 build)
* Add custom dialog for FLTK widgets. This can be constructed from
C/C++ code, or from MGL script using Special commentaries.
* Add progress for displaying the progress of execution (by ’#’
symbols in console, or by progress-bar widget).
* Add contp for contour lines on parametrically specified surface.
* Add flow3 for flow threads of 3D vector field, which start from
the plain.
* Add variant of flow for drawing a flow thread, starting from
specified point.
* Add scaletext for disabling text size scaling in relative
inplot-s (like columnplot, ...).
* Add setup for setting all low-level flags.
* Add coil for projecting periodical data.
* Add modulo operation ‘%’ (x%y=fmod(x,y)) to the list of known
operations in real-valued formulas.
* Add style ‘.’ for cont to draw contour lines from saddle points.
* Add style ‘.’ for flow to draw flow thread from saddle points.
* Add option value in tube for setting number of edges manually.
* Crop output of ode if NAN or INFINITY value occurs.
* Remove style ‘~’ for plot and tens. Now, all curves try to omit
points.
* Add setup flag MGL_FULL_CURV which disable omitting points of curve.
* Shift axis labels closer to axis.
* Change size of LaTeX-like commands \sup, \sub to be the same as
\overset, \underset.
* Change ticks drawing in colorbar.
* Add new section All samples of documentation with large set of
samples for most of MathGL features.
* Samples in documentation are generated automatically now
(from sample.cpp).
* INCOMPATIBLE: Make obsolete MGL command setsizescl. At this, the
similar C/C++/Fortran/... functions still working.
* Bugfixes.
- Rebase patch:
* mathgl-examples-install.patch
OBS-URL: https://build.opensuse.org/request/show/592532
OBS-URL: https://build.opensuse.org/package/show/science/mathgl?expand=0&rev=92
2018-03-30 10:29:17 +00:00
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug" AND CMAKE_COMPILER_IS_GNUCXX AND enable-lcov)
|
|
|
|
|
setup_target_for_coverage(
|
|
|
|
|
NAME mgl_coverage
|
2022-01-10 23:56:54 +00:00
|
|
|
@@ -17,17 +21,29 @@ if(MGL_HAVE_FLTK)
|
2013-01-28 13:18:48 +00:00
|
|
|
include_directories(${FLTK_INCLUDE_DIR})
|
2012-08-22 01:14:25 +00:00
|
|
|
add_executable(mgl_fltk_example wnd_samples.cpp fltk_example.cpp)
|
2012-12-16 11:28:01 +00:00
|
|
|
target_link_libraries(mgl_fltk_example mgl-fltk)
|
2013-01-28 13:18:48 +00:00
|
|
|
+ install(
|
2012-08-22 01:14:25 +00:00
|
|
|
+ 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)
|
2015-01-31 19:24:59 +00:00
|
|
|
+ install(
|
2012-08-22 01:14:25 +00:00
|
|
|
+ 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)
|
2012-12-16 11:28:01 +00:00
|
|
|
target_link_libraries(mgl_wx_example mgl-wx)
|
2015-01-31 19:24:59 +00:00
|
|
|
+ install(
|
2012-08-22 01:14:25 +00:00
|
|
|
+ TARGETS mgl_wx_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+ )
|
|
|
|
|
endif(MGL_HAVE_WX)
|
|
|
|
|
|
2016-02-24 11:09:43 +00:00
|
|
|
if(QT_ENABLED)
|
2022-01-10 23:56:54 +00:00
|
|
|
@@ -35,17 +51,33 @@ if(QT_ENABLED)
|
2016-02-24 11:09:43 +00:00
|
|
|
if(enable-qt5)
|
2017-08-22 19:15:00 +00:00
|
|
|
include(../scripts/qt5.cmake)
|
2015-06-06 19:05:27 +00:00
|
|
|
target_link_libraries(mgl_qt_example mgl-qt5)
|
|
|
|
|
+ install(
|
|
|
|
|
+ TARGETS mgl_qt_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+ )
|
|
|
|
|
else(enable-qt5)
|
2017-08-22 19:15:00 +00:00
|
|
|
include(../scripts/qt4.cmake)
|
2015-06-06 19:05:27 +00:00
|
|
|
target_link_libraries(mgl_qt_example mgl-qt4)
|
|
|
|
|
+ install(
|
|
|
|
|
+ TARGETS mgl_qt_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+ )
|
|
|
|
|
endif(enable-qt5)
|
2016-10-18 12:04:47 +00:00
|
|
|
|
|
|
|
|
if(MGL_HAVE_OPENGL)
|
|
|
|
|
add_executable(mgl_qgl_example wnd_samples.cpp qgl_example.cpp)
|
|
|
|
|
if(enable-qt5)
|
|
|
|
|
target_link_libraries(mgl_qgl_example mgl ${MGL_QT5_LIBS})
|
|
|
|
|
+ install(
|
|
|
|
|
+ TARGETS mgl_qgl_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+ )
|
|
|
|
|
else(enable-qt5)
|
|
|
|
|
target_link_libraries(mgl_qgl_example mgl ${MGL_QT4_LIBS})
|
|
|
|
|
+ install(
|
|
|
|
|
+ TARGETS mgl_qgl_example
|
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
|
+ )
|
|
|
|
|
endif(enable-qt5)
|
|
|
|
|
endif(MGL_HAVE_OPENGL)
|
2016-02-24 11:09:43 +00:00
|
|
|
endif(QT_ENABLED)
|