Warning, /graphics/kst-plot/misc/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # install runtime files 0002 0003 if(WIN32) 0004 if (kst_qt5) 0005 install(FILES 0006 ${QT_BINARY_DIR}/Qt5Core.dll 0007 ${QT_BINARY_DIR}/Qt5Gui.dll 0008 ${QT_BINARY_DIR}/Qt5Widgets.dll 0009 ${QT_BINARY_DIR}/Qt5Xml.dll 0010 ${QT_BINARY_DIR}/Qt5Network.dll 0011 ${QT_BINARY_DIR}/Qt5PrintSupport.dll 0012 ${QT_BINARY_DIR}/Qt5Svg.dll 0013 DESTINATION bin 0014 CONFIGURATIONS Release) 0015 install(FILES 0016 ${QT_BINARY_DIR}/../plugins/platforms/qminimal.dll 0017 ${QT_BINARY_DIR}/../plugins/platforms/qwindows.dll 0018 DESTINATION bin/platforms 0019 CONFIGURATIONS Release) 0020 install(FILES 0021 ${QT_BINARY_DIR}/../plugins/printsupport/windowsprintersupport.dll 0022 DESTINATION bin/printsupport 0023 CONFIGURATIONS Release) 0024 install(FILES 0025 ${QT_BINARY_DIR}/../plugins/imageformats/qgif.dll 0026 ${QT_BINARY_DIR}/../plugins/imageformats/qjpeg.dll 0027 ${QT_BINARY_DIR}/../plugins/imageformats/qsvg.dll 0028 DESTINATION bin/imageformats 0029 CONFIGURATIONS Release) 0030 else() 0031 install(FILES 0032 ${QT_BINARY_DIR}/QtCore4.dll 0033 ${QT_BINARY_DIR}/QtGui4.dll 0034 ${QT_BINARY_DIR}/QtXml4.dll 0035 ${QT_BINARY_DIR}/QtOpenGL4.dll 0036 ${QT_BINARY_DIR}/QtSvg4.dll 0037 ${QT_BINARY_DIR}/QtNetwork4.dll 0038 DESTINATION bin 0039 CONFIGURATIONS Release) 0040 install(FILES 0041 ${QT_BINARY_DIR}/QtCored4.dll 0042 ${QT_BINARY_DIR}/QtGuid4.dll 0043 ${QT_BINARY_DIR}/QtXmld4.dll 0044 ${QT_BINARY_DIR}/QtOpenGLd4.dll 0045 ${QT_BINARY_DIR}/QtSvgd4.dll 0046 ${QT_BINARY_DIR}/QtNetworkd4.dll 0047 DESTINATION bin 0048 CONFIGURATIONS Debug) 0049 endif() 0050 endif() 0051 0052 if(MINGW) 0053 set(runtime) 0054 if(kst_cross) 0055 execute_process(COMMAND ${CMAKE_CXX_COMPILER} -print-libgcc-file-name OUTPUT_VARIABLE GCC_LIBGCC OUTPUT_STRIP_TRAILING_WHITESPACE) 0056 list(APPEND runtime /usr/${kst_cross}/lib/libwinpthread-1.dll) 0057 else() 0058 set(GCC_LIBGCC ${CMAKE_CXX_COMPILER}) 0059 endif() 0060 get_filename_component(MINGW_RUNTIME_PATH ${GCC_LIBGCC} PATH) 0061 macro(add_runtime_dll _DLL) 0062 file(GLOB GCC_RUNTIME ${MINGW_RUNTIME_PATH}/${_DLL}) 0063 list(APPEND runtime ${GCC_RUNTIME}) 0064 endmacro() 0065 add_runtime_dll(libgcc*.dll) 0066 add_runtime_dll(libstd*.dll) 0067 add_runtime_dll(libwin*.dll) 0068 if(NOT runtime) 0069 message(FATAL_ERROR "No mingw runtime found in ${MINGW_RUNTIME_PATH}") 0070 endif() 0071 0072 install(FILES ${runtime} DESTINATION bin) 0073 endif() 0074 0075 0076 if(WIN32) 0077 set(color_folder colors) 0078 set(tutorial_folder tutorial) 0079 set(font_folder fonts) 0080 else() 0081 set(color_folder share/config/colors) 0082 set(tutorial_folder share/apps/kst/tutorial) 0083 SET(font_folder share/apps/kst/fonts) 0084 endif() 0085 0086 0087 # none of these are needed for now, so don't install. 0088 # cbn April 8, 2011 0089 # install data files (TODO: decide on how we want to ship tutorial/demo data) 0090 #if(UNIX) 0091 # if(NOT gyrodata) 0092 # configure_file(${kst_dir}/sample_data/GYRODATA+free-width+whitespace+unixEOL+dot-decimal-separator.txt.gz 0093 # ${CMAKE_BINARY_DIR}/gyrodata.dat.gz COPYONLY) 0094 # execute_process(WORKING_DIRECTORY ${CMAKE_BINARY_DIR} COMMAND gunzip gyrodata.dat.gz) 0095 # set(gyrodata ${CMAKE_BINARY_DIR}/gyrodata.dat CACHE STRING "gyrodata decompressed") 0096 # endif() 0097 #endif() 0098 #file(GLOB dat_files ${kst_dir}/misc/tutorial/*.dat) 0099 #install(FILES ${dat_files} ${gyrodata} DESTINATION ${tutorial_folder}) 0100 0101 0102 # install colors (TODO: support reading color pallets from disk) 0103 #file(GLOB idl_files ${kst_dir}/misc/IDL*) 0104 #install(FILES ${idl_files} DESTINATION ${color_folder}) 0105