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

0001 add_subdirectory( pics ) 
0002 
0003 ########### next target ###############
0004 
0005 ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KBRUCH VERSION_HEADER kbruch_version.h)
0006 
0007 include_directories( ${CMAKE_CURRENT_BINARY_DIR} )
0008 
0009 set(kbruch_SRCS
0010    kbruch.qrc
0011    PrimeFactorsLineEdit.cpp
0012    ExerciseBase.cpp
0013    Task.cpp
0014    Ratio.cpp
0015    TaskView.cpp
0016    StatisticsView.cpp
0017    PrimeNumber.cpp
0018    KBruch.cpp
0019    MainQtWidget.cpp
0020    TaskWidget.cpp
0021    FractionBaseWidget.cpp
0022    ResultWidget.cpp
0023    ExerciseCompare.cpp
0024    ExercisePercentage.cpp
0025    ExerciseMixedNumbers.cpp
0026    RatioWidget.cpp
0027    RationalWidget.cpp
0028    ExerciseConvert.cpp
0029    StatisticsBarWidget.cpp
0030    ExerciseFactorize.cpp
0031    AppMenuWidget.cpp
0032    FractionPainter.cpp
0033    FractionRingWidget.cpp )
0034 
0035 ki18n_wrap_ui(kbruch_SRCS taskcolorsbase.ui taskfontsbase.ui)
0036 
0037 kconfig_add_kcfg_files(kbruch_SRCS settingsclass.kcfgc )
0038 
0039 add_executable(kbruch ${kbruch_SRCS})
0040 
0041 target_link_libraries(kbruch
0042     KF6::ConfigCore
0043     KF6::ConfigGui
0044     KF6::CoreAddons
0045     KF6::Crash
0046     KF6::I18n
0047     KF6::WidgetsAddons
0048     KF6::XmlGui
0049 )
0050 
0051 install(TARGETS kbruch  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} )
0052 
0053 if(APPLE)
0054     set_target_properties(kbruch PROPERTIES
0055         MACOSX_BUNDLE_DISPLAY_NAME "KBruch"
0056         MACOSX_BUNDLE_BUNDLE_NAME "KBruch"
0057         MACOSX_BUNDLE_LONG_VERSION_STRING "KBruch ${RELEASE_SERVICE_VERSION}"
0058         MACOSX_BUNDLE_SHORT_VERSION_STRING "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}"
0059         MACOSX_BUNDLE_BUNDLE_VERSION "${RELEASE_SERVICE_VERSION}"
0060         MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.kbruch"
0061         MACOSX_BUNDLE_COPYRIGHT "2002-2024 The KBruch Developers")
0062 
0063 endif()
0064 
0065 ########### install files ###############
0066 
0067 install( PROGRAMS org.kde.kbruch.desktop  DESTINATION  ${KDE_INSTALL_APPDIR} )
0068 install( FILES kbruch.kcfg  DESTINATION  ${KDE_INSTALL_KCFGDIR} )
0069 
0070 ecm_install_icons( ICONS 16-apps-kbruch.png 22-apps-kbruch.png 32-apps-kbruch.png 48-apps-kbruch.png 64-apps-kbruch.png 128-apps-kbruch.png sc-apps-kbruch.svgz DESTINATION ${KDE_INSTALL_ICONDIR} THEME hicolor )