2015-11-24 06:44:57 +00:00
|
|
|
--- examples/CMakeLists.txt 2015-11-24 12:19:29.605547590 +0600
|
|
|
|
+++ examples/CMakeLists.txt 2015-11-24 12:24:58.377140217 +0600
|
2014-01-16 05:34:32 +00:00
|
|
|
@@ -4,22 +4,26 @@ endif(MGL_HAVE_GSL)
|
|
|
|
|
|
|
|
add_executable(mgl_example wnd_samples.cpp full_test.cpp samples.cpp)
|
|
|
|
target_link_libraries(mgl_example mgl)
|
|
|
|
+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)
|
|
|
|
|
2014-02-04 05:15:30 +00:00
|
|
|
if(enable-qt)
|
2015-11-24 06:44:57 +00:00
|
|
|
@@ -41,6 +45,7 @@ if(enable-qt)
|
|
|
|
target_link_libraries(mgl_qgl_example mgl)
|
|
|
|
target_link_libraries(mgl_qgl_example ${QT_LIBRARIES})
|
2014-02-04 05:15:30 +00:00
|
|
|
endif(enable-qt5)
|
2014-01-16 05:34:32 +00:00
|
|
|
+ SET(MGL_INSTALL_EXAMPLES_LIST ${MGL_INSTALL_EXAMPLES_LIST} mgl_qt_example)
|
2015-11-24 06:44:57 +00:00
|
|
|
|
2014-02-04 05:15:30 +00:00
|
|
|
endif(enable-qt)
|
2015-11-24 06:44:57 +00:00
|
|
|
|
|
|
|
@@ -50,3 +55,7 @@ if(MGL_HAVE_LTDL)
|
|
|
|
target_link_libraries(mgl_module mgl) # for compatibility with win32
|
|
|
|
endif(MGL_HAVE_LTDL)
|
|
|
|
|
2014-01-16 05:34:32 +00:00
|
|
|
+install(
|
|
|
|
+ TARGETS ${MGL_INSTALL_EXAMPLES_LIST}
|
|
|
|
+ RUNTIME DESTINATION bin
|
|
|
|
+)
|