Warning, /education/cantor/src/backends/python/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 set( PythonBackend_SRCS 0002 pythonbackend.cpp 0003 pythonsession.cpp 0004 pythonexpression.cpp 0005 pythonkeywords.cpp 0006 pythonvariablemodel.cpp 0007 pythonhighlighter.cpp 0008 pythoncompletionobject.cpp 0009 pythonextensions.cpp 0010 pythonsettingswidget.cpp 0011 ../backendsettingswidget.cpp 0012 ) 0013 0014 set(PythonServer_SRCS 0015 pythonservermain.cpp 0016 pythonserver.cpp 0017 ) 0018 0019 qt5_add_resources(PythonBackend_RSCS python.qrc) 0020 ki18n_wrap_ui(PythonBackend_SRCS settings.ui) 0021 kconfig_add_kcfg_files(PythonBackend_SRCS settings.kcfgc) 0022 0023 add_backend(pythonbackend ${PythonBackend_SRCS} ${PythonBackend_RSCS}) 0024 target_link_libraries(cantor_pythonbackend 0025 cantorlibs 0026 cantor_help 0027 KF5::KIOCore 0028 KF5::ConfigCore 0029 KF5::ConfigGui 0030 KF5::SyntaxHighlighting 0031 ) 0032 0033 add_executable(cantor_pythonserver ${PythonServer_SRCS}) 0034 set_target_properties(cantor_pythonserver PROPERTIES INSTALL_RPATH_USE_LINK_PATH false) 0035 if(MSVC) 0036 set_property(TARGET cantor_pythonserver PROPERTY LINK_FLAGS "/SUBSYSTEM:CONSOLE") 0037 endif() 0038 target_link_libraries(cantor_pythonserver Python3::Python) 0039 0040 if(BUILD_TESTING) 0041 add_executable(testpython testpython.cpp settings.cpp) 0042 add_test(NAME testpython COMMAND testpython) 0043 target_link_libraries(testpython 0044 Qt5::Test 0045 KF5::ConfigCore 0046 KF5::ConfigGui 0047 cantorlibs 0048 cantortest 0049 ) 0050 endif(BUILD_TESTING) 0051 0052 install(FILES cantor_python.knsrc DESTINATION ${KDE_INSTALL_KNSRCDIR}) 0053 install(FILES pythonbackend.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR}) 0054 0055 install(TARGETS cantor_pythonbackend DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0056 install(TARGETS cantor_pythonserver DESTINATION ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 0057 0058 install(FILES graphic_packages.xml DESTINATION ${KDE_INSTALL_DATADIR}/cantor/python) 0059 0060 #install(DIRECTORY . DESTINATION ${KDE_INSTALL_DATADIR}/cantor/pythonbackend FILES_MATCHING PATTERN "*.py")