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

0001 # SPDX-FileCopyrightText: 2002-2011 Joachim Eibl, joachim.eibl at gmx.de
0002 # SPDX-FileCopyrightText: 2018-2020 Michael Reeves reeves.87@gmail.com
0003 # SPDX-License-Identifier: GPL-2.0-or-later
0004 
0005 ########### kdiff3 executable ###############
0006 
0007 set(kdiff3_SRCS
0008    main.cpp
0009    kdiff3_shell.cpp
0010    kdiff3.cpp
0011    directorymergewindow.cpp
0012    merger.cpp
0013    pdiff.cpp
0014    difftextwindow.cpp
0015    diff.cpp
0016    optiondialog.cpp
0017    mergeresultwindow.cpp
0018    fileaccess.cpp
0019    DefaultFileAccessJobHandler.cpp
0020    gnudiff_analyze.cpp
0021    gnudiff_io.cpp
0022    gnudiff_xmalloc.cpp
0023    common.cpp
0024    smalldialogs.cpp
0025    progress.cpp
0026    ProgressProxy.cpp
0027    ProgressProxyExtender.cpp
0028    PixMapUtils.cpp
0029    MergeFileInfos.cpp
0030    Utils.cpp
0031    selection.cpp
0032    SourceData.cpp
0033    Overview.cpp
0034    Logging.cpp
0035    FileNameLineEdit.cpp
0036    MergeEditLine.cpp
0037    Options.cpp
0038    CommentParser.cpp
0039    CvsIgnoreList.cpp
0040    CompositeIgnoreList.cpp
0041    DirectoryInfo.cpp
0042    GitIgnoreList.cpp
0043 
0044    kdiff3.qrc
0045 )
0046 
0047 ki18n_wrap_ui(kdiff3_SRCS
0048     scroller.ui
0049     opendialog.ui
0050     progressdialog.ui
0051     FontChooser.ui
0052 )
0053 
0054 ecm_optional_add_subdirectory( autotests )
0055 
0056 #cann't use add_subdirectory because it changes the scope.
0057 include(icons/CMakeLists.txt)
0058 add_executable(kdiff3 ${kdiff3_SRCS})
0059 
0060 
0061 target_link_libraries(kdiff3 Qt::PrintSupport ${COMPATLIB} KF${KF_MAJOR_VERSION}::ConfigCore KF${KF_MAJOR_VERSION}::ConfigGui KF${KF_MAJOR_VERSION}::XmlGui KF${KF_MAJOR_VERSION}::KIOWidgets KF${KF_MAJOR_VERSION}::Crash KF${KF_MAJOR_VERSION}::I18n KF${KF_MAJOR_VERSION}::CoreAddons )
0062 
0063 # See https://cmake.org/cmake/help/v3.15/prop_tgt/MACOSX_BUNDLE_INFO_PLIST.html
0064 if(APPLE)
0065   set_property(
0066     TARGET kdiff3
0067     PROPERTY MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in
0068   )
0069 
0070   # These are substituted by CMake into plist.in.
0071   set(MACOSX_BUNDLE_DISPLAY_NAME "KDiff3")
0072   set(MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.KDiff3")
0073   set(MACOSX_BUNDLE_BUNDLE_NAME "KDiff3")
0074   set(MACOSX_BUNDLE_DISPLAY_NAME "KDiff3")
0075   set(MACOSX_BUNDLE_INFO_STRING "KDiff3 - Diff/Patch Frontend")
0076   set(MACOSX_BUNDLE_LONG_VERSION_STRING "KDiff3 ${KDIFF3_VERSION}")
0077   set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${KDIFF3_VERSION_MAJOR}.${KDIFF3_VERSION_MINOR}")
0078   set(MACOSX_BUNDLE_BUNDLE_VERSION "${KDIFF3_VERSION}")
0079   set(MACOSX_BUNDLE_COPYRIGHT "2003- The KDiff3 Authors")
0080 endif()
0081 
0082 if(ENABLE_GDBINDEX AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
0083     find_program(GDBINDEX "gdb-add-index")
0084     if(GDBINDEX)
0085         add_custom_command(TARGET kdiff3 POST_BUILD
0086             COMMAND "${GDBINDEX}" kdiff3
0087             WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
0088             COMMENT "Running GDB indexing..."
0089         )
0090     endif()
0091 endif()
0092 
0093 install(TARGETS kdiff3 ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0094 
0095 
0096 ########### install files ###############
0097 
0098 install( PROGRAMS org.kde.kdiff3.desktop DESTINATION ${KDE_INSTALL_APPDIR} )
0099 install( FILES org.kde.kdiff3.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR} )