54 lines
2.0 KiB
Diff
54 lines
2.0 KiB
Diff
|
diff -urp mathgl-2.3.5.1/examples/CMakeLists.txt mathgl-2.3.5.1-examples/examples/CMakeLists.txt
|
||
|
--- mathgl-2.3.5.1/examples/CMakeLists.txt 2016-06-19 23:06:40.000000000 +0600
|
||
|
+++ mathgl-2.3.5.1-examples/examples/CMakeLists.txt 2016-12-27 09:49:06.567485492 +0700
|
||
|
@@ -1,21 +1,25 @@
|
||
|
add_executable(mgl_example wnd_samples.cpp full_test.cpp samples.cpp)
|
||
|
target_link_libraries(mgl_example mgl-static ${getopt_lib-static})
|
||
|
+SET(MGL_INSTALL_EXAMPLES_LIST mgl_example)
|
||
|
|
||
|
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)
|
||
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_fltk_example)
|
||
|
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)
|
||
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_glut_example)
|
||
|
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)
|
||
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_wx_example)
|
||
|
endif(MGL_HAVE_WX)
|
||
|
|
||
|
if(QT_ENABLED)
|
||
|
@@ -27,6 +31,7 @@ if(QT_ENABLED)
|
||
|
include(../cmake-qt4.txt)
|
||
|
target_link_libraries(mgl_qt_example mgl-qt4)
|
||
|
endif(enable-qt5)
|
||
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_qt_example)
|
||
|
|
||
|
if(MGL_HAVE_OPENGL)
|
||
|
add_executable(mgl_qgl_example wnd_samples.cpp qgl_example.cpp)
|
||
|
@@ -35,6 +40,7 @@ if(QT_ENABLED)
|
||
|
else(enable-qt5)
|
||
|
target_link_libraries(mgl_qgl_example mgl ${MGL_QT4_LIBS})
|
||
|
endif(enable-qt5)
|
||
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_qgl_example)
|
||
|
endif(MGL_HAVE_OPENGL)
|
||
|
endif(QT_ENABLED)
|
||
|
|
||
|
@@ -43,3 +49,7 @@ if(MGL_HAVE_LTDL)
|
||
|
target_link_libraries(mgl_module mgl) # for compatibility with win32
|
||
|
endif(MGL_HAVE_LTDL)
|
||
|
|
||
|
+install(
|
||
|
+ TARGETS ${MGL_INSTALL_EXAMPLES_LIST}
|
||
|
+ RUNTIME DESTINATION bin
|
||
|
+)
|