Warning, /kdevelop/kdevelop/plugins/welcomepage/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 add_definitions(-DTRANSLATION_DOMAIN=\"kdevwelcomepage\")
0002 add_subdirectory(declarative)
0003 
0004 set(welcomepage_SRCS
0005     welcomepageplugin.cpp
0006     sessionsmodel.cpp
0007     welcomepageview.cpp
0008     uihelper.cpp
0009 )
0010 qt5_add_resources(welcomepage_SRCS welcomepage.qrc)
0011 declare_qt_logging_category(welcomepage_SRCS
0012     TYPE PLUGIN
0013     IDENTIFIER PLUGIN_WELCOMEPAGE
0014     CATEGORY_BASENAME "welcomepage"
0015 )
0016 
0017 kdevplatform_add_plugin(kdevwelcomepage SOURCES ${welcomepage_SRCS})
0018 option(WELCOMEPAGE_ENABLE_QMLJSDEBUGGING "Enable the QML debugging infrastructure for the welcomepage plugin" OFF)
0019 if (WELCOMEPAGE_ENABLE_QMLJSDEBUGGING)
0020     # cf. https://doc.qt.io/qt-5/qtquick-debugging.html#enabling-the-infrastructure
0021     target_compile_definitions(kdevwelcomepage PRIVATE QT_QML_DEBUG=1)
0022 endif()
0023 target_link_libraries(kdevwelcomepage
0024     KDev::Interfaces
0025     KDev::Sublime
0026     KDev::Shell
0027     KDev::Project
0028     Qt5::QuickWidgets
0029     KF5::Declarative
0030 )
0031 # see https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899
0032 if (UNIX AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0.0")
0033     message(WARNING "Applying workaround for https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899")
0034     target_link_libraries(kdevwelcomepage gcc_s gcc)
0035 endif()