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 cantor.qrc 0031 ) 0032 0033 install(FILES cantor.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 0034 0035 ki18n_wrap_ui(cantor_SRCS settings.ui) 0036 ki18n_wrap_ui(cantor_SRCS formating.ui) 0037 ki18n_wrap_ui(cantor_SRCS backendchooser.ui) 0038 0039 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-cantor.png") 0040 ecm_add_app_icon(cantor_SRCS ICONS ${ICONS_SRCS}) 0041 add_executable(cantor ${cantor_SRCS}) 0042 0043 target_link_libraries(cantor KF5::Parts KF5::NewStuffWidgets KF5::ConfigCore KF5::CoreAddons KF5::ConfigGui 0044 KF5::Crash KF5::XmlGui Qt5::WebEngine cantorlibs cantor_config) 0045 0046 ########### install files ############### 0047 install(TARGETS cantor ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ) 0048 install( PROGRAMS org.kde.cantor.desktop DESTINATION ${KDE_INSTALL_APPDIR} ) 0049 install( FILES cantor.knsrc cantor-documentation.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR} ) 0050 install( FILES cantor.xml DESTINATION ${KDE_INSTALL_MIMEDIR} ) 0051 update_xdg_mimetypes(${KDE_INSTALL_MIMEDIR}) 0052 0053 ######################################################################### 0054 # KPART SECTION 0055 ######################################################################### 0056 0057 set(cantor_PART_SRCS 0058 cantor_part.cpp 0059 worksheet.cpp 0060 worksheetview.cpp 0061 worksheetentry.cpp 0062 worksheettextitem.cpp 0063 worksheetimageitem.cpp 0064 commandentry.cpp 0065 textentry.cpp 0066 markdownentry.cpp 0067 pagebreakentry.cpp 0068 imageentry.cpp 0069 latexentry.cpp 0070 placeholderentry.cpp 0071 horizontalruleentry.cpp 0072 hierarchyentry.cpp 0073 worksheetcursor.cpp 0074 searchbar.cpp 0075 actionbar.cpp 0076 worksheettoolbutton.cpp 0077 imagesettingsdialog.cpp 0078 scripteditor/scripteditorwidget.cpp 0079 resultitem.cpp 0080 textresultitem.cpp 0081 imageresultitem.cpp 0082 animationresultitem.cpp 0083 loadedexpression.cpp 0084 animation.cpp 0085 mathrender.cpp 0086 mathrendertask.cpp 0087 worksheetcontrolitem.cpp 0088 0089 cantor_part.qrc 0090 ) 0091 0092 ki18n_wrap_ui(cantor_PART_SRCS imagesettings.ui) 0093 ki18n_wrap_ui(cantor_PART_SRCS standardsearchbar.ui) 0094 ki18n_wrap_ui(cantor_PART_SRCS extendedsearchbar.ui) 0095 0096 set(PATH_TO_CANTOR_BACKENDS "${KDE_INSTALL_FULL_PLUGINDIR}") 0097 0098 configure_file (config-cantor.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-cantor.h ) 0099 0100 kcoreaddons_add_plugin(cantorpart 0101 SOURCES ${cantor_PART_SRCS} 0102 INSTALL_NAMESPACE "kf5/parts") 0103 0104 target_link_libraries(cantorpart KF5::Parts KF5::NewStuff 0105 KF5::TextEditor ${Qt5XmlPatterns_LIBRARIES} 0106 KF5::KIOCore KF5::KIOFileWidgets KF5::KIOWidgets 0107 Qt5::PrintSupport cantorlibs cantor_config ) 0108 0109 # if(Discount_FOUND) 0110 target_link_libraries(cantorpart Discount::Lib) 0111 # endif(Discount_FOUND) 0112 0113 if(BUILD_TESTING) 0114 add_subdirectory(test) 0115 endif(BUILD_TESTING)