Warning, /education/cantor/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 ######################################################################### 0002 # Subdirectories 0003 ######################################################################### 0004 add_subdirectory(lib) 0005 add_subdirectory(scripteditor) 0006 0007 include_directories( lib ${CMAKE_CURRENT_BINARY_DIR}/lib) 0008 if(BUILD_TESTING) 0009 include(ECMMarkAsTest) 0010 include_directories( lib/test ) 0011 endif(BUILD_TESTING) 0012 0013 add_subdirectory(backends) 0014 add_subdirectory(assistants) 0015 add_subdirectory(xslt) 0016 add_subdirectory(panelplugins) 0017 0018 0019 #build the config object in a separate library, shared between shell and part 0020 kconfig_add_kcfg_files(config_SRCS settings.kcfgc) 0021 add_library( cantor_config SHARED ${config_SRCS} ) 0022 target_link_libraries( cantor_config KF5::Parts KF5::NewStuff ) 0023 install( TARGETS cantor_config ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0024 0025 set(cantor_SRCS 0026 main.cpp 0027 cantor.cpp 0028 backendchoosedialog.cpp 0029 ) 0030 0031 install(FILES cantor.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 0032 0033 ki18n_wrap_ui(cantor_SRCS settings.ui) 0034 ki18n_wrap_ui(cantor_SRCS formating.ui) 0035 ki18n_wrap_ui(cantor_SRCS backendchooser.ui) 0036 0037 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-cantor.png") 0038 ecm_add_app_icon(cantor_SRCS ICONS ${ICONS_SRCS}) 0039 add_executable(cantor ${cantor_SRCS}) 0040 0041 target_link_libraries(cantor KF5::Parts KF5::NewStuffWidgets KF5::ConfigCore KF5::CoreAddons KF5::ConfigGui 0042 KF5::Crash KF5::XmlGui Qt5::WebEngine cantorlibs cantor_config) 0043 0044 ########### install files ############### 0045 install(TARGETS cantor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0046 install( PROGRAMS org.kde.cantor.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0047 install( FILES cantor_shell.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) 0048 install( FILES cantor.knsrc cantor-documentation.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) 0049 install( FILES cantor.xml DESTINATION ${KDE_INSTALL_MIMEDIR} ) 0050 update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR}) 0051 0052 ######################################################################### 0053 # KPART SECTION 0054 ######################################################################### 0055 0056 set(cantor_PART_SRCS 0057 cantor_part.cpp 0058 worksheet.cpp 0059 worksheetview.cpp 0060 worksheetentry.cpp 0061 worksheettextitem.cpp 0062 worksheetimageitem.cpp 0063 commandentry.cpp 0064 textentry.cpp 0065 markdownentry.cpp 0066 pagebreakentry.cpp 0067 imageentry.cpp 0068 latexentry.cpp 0069 placeholderentry.cpp 0070 horizontalruleentry.cpp 0071 hierarchyentry.cpp 0072 worksheetcursor.cpp 0073 searchbar.cpp 0074 actionbar.cpp 0075 worksheettoolbutton.cpp 0076 imagesettingsdialog.cpp 0077 scripteditor/scripteditorwidget.cpp 0078 resultitem.cpp 0079 textresultitem.cpp 0080 imageresultitem.cpp 0081 animationresultitem.cpp 0082 loadedexpression.cpp 0083 animation.cpp 0084 mathrender.cpp 0085 mathrendertask.cpp 0086 worksheetcontrolitem.cpp 0087 ) 0088 0089 ki18n_wrap_ui(cantor_PART_SRCS imagesettings.ui) 0090 ki18n_wrap_ui(cantor_PART_SRCS standardsearchbar.ui) 0091 ki18n_wrap_ui(cantor_PART_SRCS extendedsearchbar.ui) 0092 0093 set(PATH_TO_CANTOR_BACKENDS "${KDE_INSTALL_FULL_PLUGINDIR}") 0094 0095 configure_file (config-cantor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-cantor.h ) 0096 0097 kcoreaddons_add_plugin(cantorpart 0098 SOURCES ${cantor_PART_SRCS} 0099 INSTALL_NAMESPACE "kf5/parts") 0100 0101 target_link_libraries(cantorpart KF5::Parts KF5::NewStuff 0102 KF5::TextEditor ${Qt5XmlPatterns_LIBRARIES} 0103 KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets 0104 Qt5::PrintSupport cantorlibs cantor_config ) 0105 0106 # if(Discount_FOUND) 0107 target_link_libraries(cantorpart Discount::Lib) 0108 # endif(Discount_FOUND) 0109 0110 if(BUILD_TESTING) 0111 add_subdirectory(test) 0112 endif(BUILD_TESTING) 0113 0114 install( FILES cantor_part.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor ) 0115 install( FILES cantor_scripteditor.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/cantor )