Warning, /education/cantor/src/lib/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 if(LIBSPECTRE_FOUND)
0002    include_directories(${LIBSPECTRE_INCLUDE_DIR})
0003 endif(LIBSPECTRE_FOUND)
0004 
0005 set( cantor_LIB_SRCS
0006   session.cpp
0007   expression.cpp
0008   backend.cpp
0009   result.cpp
0010   textresult.cpp
0011   imageresult.cpp
0012   mimeresult.cpp
0013   epsresult.cpp
0014   latexresult.cpp
0015   latexrenderer.cpp
0016   renderer.cpp
0017   helpresult.cpp
0018   animationresult.cpp
0019   htmlresult.cpp
0020   extension.cpp
0021   assistant.cpp
0022   completionobject.cpp
0023   syntaxhelpobject.cpp
0024   defaulthighlighter.cpp
0025   defaultvariablemodel.cpp
0026   panelplugin.cpp
0027   panelpluginhandler.cpp
0028   worksheetaccess.cpp
0029   directives/plotdirectives.cpp
0030   jupyterutils.cpp
0031   graphicpackage.cpp
0032 )
0033 
0034 Set( cantor_LIB_HDRS
0035   cantor_macros.h
0036   #base classes
0037   backend.h
0038   session.h
0039   expression.h
0040   extension.h
0041   syntaxhelpobject.h
0042   completionobject.h
0043   #results
0044   animationresult.h
0045   epsresult.h
0046   helpresult.h
0047   imageresult.h
0048   latexresult.h
0049   renderer.h
0050   result.h
0051   textresult.h
0052   mimeresult.h
0053   htmlresult.h
0054   #helper classes
0055   defaulthighlighter.h
0056   defaultvariablemodel.h
0057   worksheetaccess.h
0058   jupyterutils.h
0059   graphicpackage.h
0060   # plugin classes
0061   panelplugin.h
0062   panelpluginhandler.h
0063 )
0064 
0065 ki18n_wrap_ui(cantor_LIB_SRCS directives/axisrange.ui directives/plottitle.ui)
0066 
0067 kconfig_add_kcfg_files(cantor_LIB_SRCS settings.kcfgc)
0068 install(FILES cantor_libs.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0069 
0070 configure_file (config-cantorlib.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-cantorlib.h )
0071 
0072 add_library( cantorlibs  SHARED ${cantor_LIB_SRCS} )
0073 generate_export_header(cantorlibs BASE_NAME cantor)
0074 
0075 kcoreaddons_desktop_to_json(cantorlibs cantor_assistant.desktop DEFAULT_SERVICE_TYPE)
0076 kcoreaddons_desktop_to_json(cantorlibs cantor_backend.desktop DEFAULT_SERVICE_TYPE)
0077 kcoreaddons_desktop_to_json(cantorlibs cantor_panelplugin.desktop DEFAULT_SERVICE_TYPE)
0078 
0079 target_link_libraries( cantorlibs
0080   KF5::Completion
0081   KF5::IconThemes
0082   KF5::KIOCore
0083   KF5::KIOFileWidgets
0084   KF5::KIOWidgets
0085   KF5::Archive
0086   KF5::ConfigCore
0087   KF5::ConfigGui
0088   KF5::I18n
0089   KF5::XmlGui
0090   ${QT5_LIBRARIES}
0091   Qt5::Xml
0092   Qt5::Svg
0093   Poppler::Qt5
0094 )
0095 
0096 if(LIBSPECTRE_FOUND)
0097     target_link_libraries(cantorlibs ${LIBSPECTRE_LIBRARY})
0098 endif(LIBSPECTRE_FOUND)
0099 
0100 set (CANTORLIBS_SOVERSION 28)
0101 set_target_properties( cantorlibs PROPERTIES VERSION ${RELEASE_SERVICE_VERSION} SOVERSION ${CANTORLIBS_SOVERSION})
0102 
0103 ecm_setup_version(${RELEASE_SERVICE_VERSION}
0104     VARIABLE_PREFIX CANTOR
0105     SOVERSION ${CANTORLIBS_SOVERSION}
0106     VERSION_HEADER ${CMAKE_CURRENT_BINARY_DIR}/cantorlibs_version.h
0107 )
0108 
0109 install( TARGETS cantorlibs EXPORT CantorTargets  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0110 
0111 install(
0112   FILES
0113     ${cantor_LIB_HDRS}
0114     ${CMAKE_CURRENT_BINARY_DIR}/cantor_export.h
0115     ${CMAKE_CURRENT_BINARY_DIR}/cantorlibs_version.h
0116   DESTINATION ${KDE_INSTALL_INCLUDEDIR}/cantor
0117   COMPONENT Devel
0118 )
0119 
0120 if(BUILD_TESTING)
0121   add_subdirectory(test)
0122 endif()