diff --git a/app/plasma/applet/CMakeLists.txt b/app/plasma/applet/CMakeLists.txt
index 4f85dfc404..238efbaf06 100644
--- a/app/plasma/applet/CMakeLists.txt
+++ b/app/plasma/applet/CMakeLists.txt
@@ -1,6 +1,4 @@
-project(kdevelopsessions)
-
install(DIRECTORY package/
DESTINATION ${KDE_INSTALL_DATADIR}/plasma/plasmoids/kdevelopsessions)
install(FILES package/metadata.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} RENAME plasma-applet-kdevelopsessions.desktop)
diff --git a/debuggers/gdb/CMakeLists.txt b/debuggers/gdb/CMakeLists.txt
index a28f1f23e2..be79d61f6f 100644
--- a/debuggers/gdb/CMakeLists.txt
+++ b/debuggers/gdb/CMakeLists.txt
@@ -1,68 +1,66 @@
-project(gdb)
-
find_package(OktetaGui CONFIG)
set_package_properties(OktetaGui PROPERTIES
PURPOSE "Required for building MemoryViewer Widget."
URL "http://kde.org/"
TYPE OPTIONAL)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevgdb\")
set(kdevgdb_SRCS
gdb.cpp
gdboutputwidget.cpp
# debuggertracingdialog.cpp
gdbbreakpointcontroller.cpp
debugsession.cpp
variablecontroller.cpp
gdbframestackmodel.cpp
gdbvariable.cpp
gdbconfigpage.cpp
)
if (OktetaGui_FOUND)
set(KDEV_WITH_MEMVIEW true)
list(APPEND kdevgdb_SRCS
memviewdlg.cpp)
endif()
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config-gdb-plugin.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-gdb-plugin.h )
ecm_qt_declare_logging_category(kdevgdb_SRCS
HEADER debuglog.h
IDENTIFIER DEBUGGERGDB
CATEGORY_NAME "kdevelop.debuggers.gdb"
)
set(kdevgdb_UI
debuggertracingdialog.ui
gdbconfigpage.ui
)
kde_enable_exceptions()
ki18n_wrap_ui(kdevgdb_SRCS ${kdevgdb_UI})
qt5_add_resources(kdevgdb_SRCS kdevgdb.qrc)
# common code used by plugin and unit test
add_library(kdevgdb_static STATIC ${kdevgdb_SRCS})
target_link_libraries(kdevgdb_static
kdevdebuggercommon
KDev::Debugger
KDev::Shell
KDev::Interfaces
KF5::KIOWidgets
Qt5::Core
Qt5::Gui
)
if(OktetaGui_FOUND)
target_link_libraries(kdevgdb_static OktetaCore OktetaGui)
endif()
set_property(TARGET kdevgdb_static PROPERTY POSITION_INDEPENDENT_CODE ON)
# The actual plugin
kdevplatform_add_plugin(kdevgdb JSON kdevgdb.json SOURCES debuggerplugin.cpp )
target_link_libraries(kdevgdb kdevgdb_static)
if(BUILD_TESTING)
add_subdirectory(unittests)
endif()
add_subdirectory(printers)
diff --git a/debuggers/lldb/CMakeLists.txt b/debuggers/lldb/CMakeLists.txt
index 7cbb6c0492..e93aa4689c 100644
--- a/debuggers/lldb/CMakeLists.txt
+++ b/debuggers/lldb/CMakeLists.txt
@@ -1,65 +1,64 @@
-project(lldb)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevlldb\")
set(kdevlldb_SRCS
lldbdebugger.cpp
lldbcommand.cpp
debugsession.cpp
controllers/breakpointcontroller.cpp
controllers/variablecontroller.cpp
controllers/variable.cpp
controllers/framestackmodel.cpp
widgets/lldbconfigpage.cpp
lldblauncher.cpp
)
ecm_qt_declare_logging_category(kdevlldb_SRCS
HEADER debuglog.h
IDENTIFIER DEBUGGERLLDB
CATEGORY_NAME "kdevelop.debuggers.lldb"
)
set(kdevlldb_UI
widgets/lldbconfigpage.ui
)
ki18n_wrap_ui(kdevlldb_SRCS ${kdevlldb_UI})
qt5_add_resources(kdevlldb_SRCS kdevlldb.qrc)
# common code used by plugin and unit test
add_library(kdevlldb_static STATIC ${kdevlldb_SRCS})
target_link_libraries(kdevlldb_static
PUBLIC
kdevdebuggercommon
KDev::Debugger
KDev::Interfaces
PRIVATE
Qt5::Core
Qt5::Gui
KF5::KIOWidgets
KDev::Shell
)
# The actual plugin
kdevplatform_add_plugin(kdevlldb JSON kdevlldb.json SOURCES debuggerplugin.cpp)
target_link_libraries(kdevlldb
PUBLIC
kdevlldb_static
KDev::Interfaces
KDev::Language
KDev::Debugger
KDev::OutputView
KDev::Project
KDev::Util
KF5::TextEditor
PRIVATE
KDev::Sublime
)
# Data Formatters
add_subdirectory(formatters)
# Unit tests
if(BUILD_TESTING)
add_subdirectory(unittests)
endif()
diff --git a/kdevplatform/CMakeLists.txt b/kdevplatform/CMakeLists.txt
index 9532ce80c7..0888850580 100644
--- a/kdevplatform/CMakeLists.txt
+++ b/kdevplatform/CMakeLists.txt
@@ -1,171 +1,168 @@
-cmake_minimum_required(VERSION 3.0)
-project(KDevPlatform)
-
# kdevplatform version
set(KDEVPLATFORM_VERSION_MAJOR 5)
set(KDEVPLATFORM_VERSION_MINOR 1)
set(KDEVPLATFORM_VERSION_PATCH 40)
set(KDEVPLATFORM_VERSION "${KDEVPLATFORM_VERSION_MAJOR}.${KDEVPLATFORM_VERSION_MINOR}.${KDEVPLATFORM_VERSION_PATCH}")
# plugin versions listed in the .desktop files
set(KDEV_PLUGIN_VERSION 29)
# Increase this to reset incompatible item-repositories
set(KDEV_ITEMREPOSITORY_VERSION 87)
# library version / SO version
set(KDEVPLATFORM_LIB_SOVERSION 10)
set(CMAKE_MODULE_PATH ${KDevPlatform_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(KDevPlatformMacros)
set(QT_MIN_VERSION "5.5.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Concurrent Test)
if(BUILD_TESTING)
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
endif()
find_package(Qt5QuickWidgets ${QT_MIN_VERSION} CONFIG)
set_package_properties(Qt5QuickWidgets PROPERTIES
PURPOSE "Qt5 QuickWidgets library (part of Qt >=5.3). Required for the Welcome Page plugin."
TYPE RECOMMENDED
)
find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
Archive
Config
GuiAddons
WidgetsAddons
IconThemes
I18n
ItemModels
ItemViews
JobWidgets
KCMUtils
KIO
NewStuff
Notifications
NotifyConfig
Parts
Service
Sonnet
TextEditor
ThreadWeaver
WindowSystem
Declarative
XmlGui
)
find_package(Grantlee5 CONFIG)
set_package_properties(Grantlee5 PROPERTIES
PURPOSE "Grantlee templating library, needed for file templates"
URL "http://www.grantlee.org/"
TYPE RECOMMENDED)
set(Boost_ADDITIONAL_VERSIONS 1.39.0 1.39)
find_package(Boost 1.35.0)
set_package_properties(Boost PROPERTIES
PURPOSE "Boost libraries for enabling the classbrowser"
URL "http://www.boost.org"
TYPE REQUIRED)
add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050400
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_URL_CAST_FROM_STRING
-DQT_STRICT_ITERATORS
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
)
function(add_compile_flag_if_supported _flag)
unset(_have_flag CACHE)
string(REGEX REPLACE "[-=]" "_" _varname ${_flag})
string(TOUPPER ${_varname} _varname)
set(_varname "HAVE${_varname}")
check_cxx_compiler_flag("${_flag}" "${_varname}")
if (${${_varname}})
add_compile_options(${_flag})
endif()
endfunction()
# Turn off missing-field-initializers warning for GCC to avoid noise from false positives with empty {}
# See discussion: http://mail.kde.org/pipermail/kdevelop-devel/2014-February/046910.html
add_compile_flag_if_supported(-Wno-missing-field-initializers)
add_compile_flag_if_supported(-Werror=undefined-bool-conversion)
add_compile_flag_if_supported(-Werror=tautological-undefined-compare)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_flag_if_supported(-Wdocumentation)
# This warning is triggered by every call to qCDebug()
add_compile_flag_if_supported(-Wno-gnu-zero-variadic-macro-arguments)
endif()
if (CMAKE_COMPILER_CXX_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_flag_if_supported(-pedantic)
endif()
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config-kdevplatform.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-kdevplatform.h )
include_directories(${KDevPlatform_SOURCE_DIR} ${KDevPlatform_BINARY_DIR})
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_TOLOWER)
if(CMAKE_BUILD_TYPE_TOLOWER MATCHES "debug"
OR CMAKE_BUILD_TYPE_TOLOWER STREQUAL "")
set(COMPILER_OPTIMIZATIONS_DISABLED TRUE)
else()
set(COMPILER_OPTIMIZATIONS_DISABLED FALSE)
endif()
add_subdirectory(sublime)
add_subdirectory(interfaces)
add_subdirectory(project)
add_subdirectory(language)
add_subdirectory(shell)
add_subdirectory(util)
add_subdirectory(outputview)
add_subdirectory(vcs)
add_subdirectory(pics)
add_subdirectory(debugger)
add_subdirectory(documentation)
add_subdirectory(serialization)
add_subdirectory(template)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_subdirectory(plugins)
set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KDevPlatform")
configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/KDevPlatformConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/KDevPlatformConfig.cmake"
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
)
ecm_setup_version(${KDEVPLATFORM_VERSION_MAJOR}.${KDEVPLATFORM_VERSION_MINOR}.${KDEVPLATFORM_VERSION_PATCH}
VARIABLE_PREFIX KDEVPLATFORM
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/kdevplatform_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KDevPlatformConfigVersion.cmake"
SOVERSION ${KDEVPLATFORM_LIB_SOVERSION})
install( FILES
"${KDevPlatform_BINARY_DIR}/kdevplatform_version.h"
"${KDevPlatform_BINARY_DIR}/config-kdevplatform.h"
DESTINATION "${KDE_INSTALL_INCLUDEDIR}/kdevplatform" )
install( FILES
"${KDevPlatform_BINARY_DIR}/KDevPlatformConfig.cmake"
"${KDevPlatform_BINARY_DIR}/KDevPlatformConfigVersion.cmake"
cmake/modules/KDevPlatformMacros.cmake
DESTINATION "${CMAKECONFIG_INSTALL_DIR}" )
install( EXPORT KDevPlatformTargets
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
NAMESPACE KDev::
FILE KDevPlatformTargets.cmake )
# kdebugsettings file
install( FILES kdevplatform.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
# CTestCustom.cmake has to be in the CTEST_BINARY_DIR.
# in the KDE build system, this is the same as CMAKE_BINARY_DIR.
configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR}/CTestCustom.cmake)
diff --git a/kdevplatform/plugins/bazaar/CMakeLists.txt b/kdevplatform/plugins/bazaar/CMakeLists.txt
index e54e8a6be2..1345ec683d 100644
--- a/kdevplatform/plugins/bazaar/CMakeLists.txt
+++ b/kdevplatform/plugins/bazaar/CMakeLists.txt
@@ -1,21 +1,19 @@
-project(bazaar)
-
set(kdevbazaar_SRCS
diffjob.cpp
bzrannotatejob.cpp
bazaarplugin.cpp
bazaarpluginmetadata.cpp
bazaarutils.cpp
copyjob.cpp
)
kdevplatform_add_plugin(kdevbazaar JSON kdevbazaar.json SOURCES ${kdevbazaar_SRCS})
target_link_libraries(kdevbazaar
KDev::Vcs
)
add_subdirectory(icons)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
diff --git a/kdevplatform/plugins/codeutils/CMakeLists.txt b/kdevplatform/plugins/codeutils/CMakeLists.txt
index 1e1964430c..9f942aa446 100644
--- a/kdevplatform/plugins/codeutils/CMakeLists.txt
+++ b/kdevplatform/plugins/codeutils/CMakeLists.txt
@@ -1,26 +1,25 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdevcodeutils\")
-project(codeutils)
########### install target ###############
set(kdevcodeutils_PART_SRCS
codeutilsplugin.cpp
)
ecm_qt_declare_logging_category(kdevcodeutils_PART_SRCS
HEADER debug.h
IDENTIFIER PLUGIN_CODEUTILS
CATEGORY_NAME "kdevplatform.plugins.codeutils"
)
qt5_add_resources(kdevcodeutils_PART_SRCS kdevcodeutils.qrc)
kdevplatform_add_plugin(kdevcodeutils JSON kdevcodeutils.json SOURCES ${kdevcodeutils_PART_SRCS})
target_link_libraries(kdevcodeutils
KF5::Parts
KF5::TextEditor
KDev::Interfaces
KDev::Util
KDev::Language
)
add_subdirectory(doc_templates)
diff --git a/kdevplatform/plugins/documentswitcher/CMakeLists.txt b/kdevplatform/plugins/documentswitcher/CMakeLists.txt
index 30da6fa658..1d3b80aaad 100644
--- a/kdevplatform/plugins/documentswitcher/CMakeLists.txt
+++ b/kdevplatform/plugins/documentswitcher/CMakeLists.txt
@@ -1,20 +1,19 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdevdocumentswitcher\")
-project(documentswitcher)
########### next target ###############
set(kdevdocumentswitcher_PART_SRCS
documentswitcherplugin.cpp
documentswitchertreeview.cpp
)
ecm_qt_declare_logging_category(kdevdocumentswitcher_PART_SRCS
HEADER debug.h
IDENTIFIER PLUGIN_DOCUMENTSWITCHER
CATEGORY_NAME "kdevplatform.plugins.documentswitcher"
)
qt5_add_resources(kdevdocumentswitcher_PART_SRCS kdevdocumentswitcher.qrc)
kdevplatform_add_plugin(kdevdocumentswitcher JSON kdevdocumentswitcher.json SOURCES ${kdevdocumentswitcher_PART_SRCS})
target_link_libraries(kdevdocumentswitcher KDev::Interfaces KDev::Sublime KDev::Interfaces KDev::Util KDev::Project )
diff --git a/kdevplatform/plugins/documentview/CMakeLists.txt b/kdevplatform/plugins/documentview/CMakeLists.txt
index f8aba7445d..d78edff432 100644
--- a/kdevplatform/plugins/documentview/CMakeLists.txt
+++ b/kdevplatform/plugins/documentview/CMakeLists.txt
@@ -1,22 +1,21 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdevdocumentview\")
-project(documentview)
#add_subdirectory(settings)
########### next target ###############
set(kdevdocumentview_PART_SRCS
kdevdocumentview.cpp
kdevdocumentviewdelegate.cpp
kdevdocumentviewplugin.cpp
kdevdocumentmodel.cpp
kdevdocumentselection.cpp
)
qt5_add_resources(kdevdocumentview_PART_SRCS kdevdocumentview.qrc)
kdevplatform_add_plugin(kdevdocumentview JSON kdevdocumentview.json SOURCES ${kdevdocumentview_PART_SRCS})
target_link_libraries(kdevdocumentview
KDev::Interfaces
KDev::Util
KF5::TextEditor
)
diff --git a/kdevplatform/plugins/grepview/CMakeLists.txt b/kdevplatform/plugins/grepview/CMakeLists.txt
index 1363ac93ed..e3d0a278b9 100644
--- a/kdevplatform/plugins/grepview/CMakeLists.txt
+++ b/kdevplatform/plugins/grepview/CMakeLists.txt
@@ -1,51 +1,50 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdevgrepview\")
-project(grepview)
########### next target ###############
ecm_qt_declare_logging_category(kdevgrepview_LOG_PART_SRCS
HEADER debug.h
IDENTIFIER PLUGIN_GREPVIEW
CATEGORY_NAME "kdevplatform.plugins.grepview"
)
set(kdevgrepview_PART_SRCS
grepviewplugin.cpp
grepviewpluginmetadata.cpp
grepdialog.cpp
grepoutputmodel.cpp
grepoutputdelegate.cpp
grepjob.cpp
grepfindthread.cpp
grepoutputview.cpp
greputil.cpp
${kdevgrepview_LOG_PART_SRCS}
)
set(kdevgrepview_PART_UI
grepwidget.ui
grepoutputview.ui
)
ki18n_wrap_ui(kdevgrepview_PART_SRCS ${kdevgrepview_PART_UI})
qt5_add_resources(kdevgrepview_PART_SRCS kdevgrepview.qrc)
kdevplatform_add_plugin(kdevgrepview JSON kdevgrepview.json SOURCES ${kdevgrepview_PART_SRCS})
target_link_libraries(kdevgrepview
KF5::Parts
KF5::TextEditor
KF5::Completion
KF5::TextEditor
KDev::Interfaces
KDev::OutputView
KDev::Project
KDev::Util
KDev::Language
)
########### install files ###############
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
diff --git a/kdevplatform/plugins/perforce/p4clientstub/CMakeLists.txt b/kdevplatform/plugins/perforce/p4clientstub/CMakeLists.txt
index b07defeb13..228bf1f531 100644
--- a/kdevplatform/plugins/perforce/p4clientstub/CMakeLists.txt
+++ b/kdevplatform/plugins/perforce/p4clientstub/CMakeLists.txt
@@ -1,9 +1,7 @@
-project(p4clientstub)
-
set(p4clientstub_SRCS main.cpp )
add_executable(p4clientstub ${p4clientstub_SRCS} )
target_link_libraries(p4clientstub
Qt5::Core
)
diff --git a/kdevplatform/plugins/switchtobuddy/CMakeLists.txt b/kdevplatform/plugins/switchtobuddy/CMakeLists.txt
index 9b0151e9bb..f5acd05b40 100644
--- a/kdevplatform/plugins/switchtobuddy/CMakeLists.txt
+++ b/kdevplatform/plugins/switchtobuddy/CMakeLists.txt
@@ -1,21 +1,20 @@
add_definitions(-DTRANSLATION_DOMAIN=\"kdevswitchtobuddy\")
-project(codeutils)
########### install target ###############
set(kdevswitchtobuddy_PART_SRCS
switchtobuddyplugin.cpp
)
ecm_qt_declare_logging_category(kdevswitchtobuddy_PART_SRCS
HEADER debug.h
IDENTIFIER PLUGIN_SWITCHTOBUDDY
CATEGORY_NAME "kdevplatform.plugins.switchtobuddy"
)
qt5_add_resources(kdevswitchtobuddy_PART_SRCS kdevswitchtobuddy.qrc)
kdevplatform_add_plugin(kdevswitchtobuddy JSON kdevswitchtobuddy.json SOURCES ${kdevswitchtobuddy_PART_SRCS})
target_link_libraries(kdevswitchtobuddy
KDev::Interfaces
KDev::Language
)
diff --git a/kdevplatform/plugins/welcomepage/declarative/CMakeLists.txt b/kdevplatform/plugins/welcomepage/declarative/CMakeLists.txt
index 2943137fb9..7865473233 100644
--- a/kdevplatform/plugins/welcomepage/declarative/CMakeLists.txt
+++ b/kdevplatform/plugins/welcomepage/declarative/CMakeLists.txt
@@ -1,14 +1,12 @@
-project(kdevelop-declarative)
-
include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
add_library(kdevelopdashboarddeclarativeplugin SHARED kdevelopdashboarddeclarativeplugin.cpp icoreobject.cpp)
target_link_libraries(kdevelopdashboarddeclarativeplugin
Qt5::Qml
KDev::Vcs
)
install(TARGETS kdevelopdashboarddeclarativeplugin DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kdevplatform)
install(FILES qmldir DESTINATION ${KDE_INSTALL_QMLDIR}/org/kde/kdevplatform)
diff --git a/projectbuilders/makebuilder/CMakeLists.txt b/projectbuilders/makebuilder/CMakeLists.txt
index e04daffe9d..40f9327699 100644
--- a/projectbuilders/makebuilder/CMakeLists.txt
+++ b/projectbuilders/makebuilder/CMakeLists.txt
@@ -1,43 +1,42 @@
-project(makebuilder)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevmakebuilder\")
########### next target ###############
set(kdevmakebuilder_SRCS
makebuilder.cpp
makejob.cpp
makebuilderpreferences.cpp
)
ecm_qt_declare_logging_category(kdevmakebuilder_SRCS
HEADER debug.h
IDENTIFIER KDEV_MAKEBUILDER
CATEGORY_NAME "kdevelop.projectbuilders.makebuilder"
)
ki18n_wrap_ui(kdevmakebuilder_SRCS makeconfig.ui)
kconfig_add_kcfg_files( kdevmakebuilder_SRCS makebuilderconfig.kcfgc )
#add_library(kdevmakebuilder MODULE ${kdevmakebuilder_SRCS})
qt5_add_resources(kdevmakebuilder_SRCS kdevmakebuilder.qrc)
kdevplatform_add_plugin(kdevmakebuilder JSON kdevmakebuilder.json SOURCES ${kdevmakebuilder_SRCS})
target_link_libraries(kdevmakebuilder
KF5::TextEditor
KDev::Interfaces
KDev::Project
KDev::OutputView
KDev::Shell
KDev::Util
KDev::Shell
)
install(FILES imakebuilder.h DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevelop/makebuilder COMPONENT Devel)
add_library(KDevIMakeBuilder INTERFACE)
add_library(KDev::IMakeBuilder ALIAS KDevIMakeBuilder)
target_include_directories(KDevIMakeBuilder INTERFACE
"$"
"$"
)
set_target_properties(KDevIMakeBuilder PROPERTIES
EXPORT_NAME IMakeBuilder
)
install(TARGETS KDevIMakeBuilder EXPORT KDevelopTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/projectmanagers/cmake/CMakeLists.txt b/projectmanagers/cmake/CMakeLists.txt
index e09e2c126f..d7534a1fe0 100644
--- a/projectmanagers/cmake/CMakeLists.txt
+++ b/projectmanagers/cmake/CMakeLists.txt
@@ -1,115 +1,114 @@
-project(cmakemanager)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevcmake\")
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/parser)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
add_subdirectory(icons)
# enable this if you want to have the cmake debug visitor run on each CMakeLists.txt
# the debug visitor prints out the Ast for the CMakeLists.txt file.
#add_definitions( -DCMAKEDEBUGVISITOR )
ecm_qt_declare_logging_category(cmake_LOG_SRCS
HEADER debug.h
IDENTIFIER CMAKE
CATEGORY_NAME "kdevelop.projectmanagers.cmake"
)
set( cmakecommon_SRCS
parser/cmListFileLexer.c
parser/cmakecachereader.cpp
parser/cmakelistsparser.cpp
parser/cmakeduchaintypes.cpp
cmakeutils.cpp
cmakeextraargumentshistory.cpp
cmakebuilddirchooser.cpp
cmakeserver.cpp
${cmake_LOG_SRCS}
)
set_source_files_properties(parser/cmListFileLexer.c PROPERTIES COMPILE_FLAGS "-DYY_NO_INPUT -DYY_NO_UNPUT")
set( cmakecommon_UI
cmakebuilddirchooser.ui
)
set( cmakemanager_SRCS
testing/ctestutils.cpp
testing/ctestfindjob.cpp
testing/ctestrunjob.cpp
testing/ctestsuite.cpp
testing/qttestdelegate.cpp
cmakeimportjsonjob.cpp
cmakeserverimportjob.cpp
cmakenavigationwidget.cpp
cmakemanager.cpp
cmakeprojectdata.cpp
cmakemodelitems.cpp
duchain/cmakeparsejob.cpp
duchain/usebuilder.cpp
duchain/declarationbuilder.cpp
duchain/contextbuilder.cpp
cmakecodecompletionmodel.cpp
# cmakecommitchangesjob.cpp
# cmakeedit.cpp
${cmake_LOG_SRCS}
)
set( cmakemanager_UI
cmakepossibleroots.ui
)
set( cmakesettings_SRCS
settings/cmakepreferences.cpp
settings/cmakecachemodel.cpp
settings/cmakecachedelegate.cpp
settings/cmakecachemodel.cpp
)
ki18n_wrap_ui(cmakesettings_SRCS settings/cmakebuildsettings.ui)
set( cmakedoc_SRCS
cmakedocumentation.cpp
cmakehelpdocumentation.cpp
cmakecommandscontents.cpp
)
if(MSVC)
add_definitions(-DYY_NO_UNISTD_H)
endif()
# Note: This library doesn't follow API/ABI/BC rules and shouldn't have a SOVERSION
# Its only purpose is to support the plugin without needing to add all source files
# to the plugin target
kconfig_add_kcfg_files( cmakecommon_SRCS cmakebuilderconfig.kcfgc )
ki18n_wrap_ui( cmakecommon_SRCS ${cmakecommon_UI} )
add_library( kdevcmakecommon SHARED ${cmakecommon_SRCS} )
target_link_libraries( kdevcmakecommon
KF5::TextEditor KDev::Interfaces KDev::Project KDev::Util
KDev::Language
)
generate_export_header(kdevcmakecommon EXPORT_FILE_NAME cmakecommonexport.h)
ki18n_wrap_ui( cmakemanager_SRCS ${cmakemanager_UI} )
add_library( kdevcmakemanagernosettings STATIC ${cmakemanager_SRCS})
target_link_libraries( kdevcmakemanagernosettings KF5::KIOWidgets KDev::Util
KDev::Interfaces kdevcmakecommon kdevmakefileresolver
KDev::Project KDev::Language
KDev::OutputView KF5::TextEditor Qt5::Concurrent)
kdevplatform_add_plugin(kdevcmakemanager JSON kdevcmakemanager.json SOURCES ${cmakemanager_SRCS} ${cmakesettings_SRCS})
target_link_libraries( kdevcmakemanager KF5::KIOWidgets KDev::Util
KDev::Interfaces kdevcmakecommon kdevmakefileresolver
KDev::Project KDev::Language KDev::Shell
KDev::OutputView KF5::TextEditor Qt5::Concurrent)
kdevplatform_add_plugin(kdevcmakedocumentation JSON kdevcmakedocumentation.json SOURCES ${cmakedoc_SRCS})
target_link_libraries( kdevcmakedocumentation
KDev::Interfaces kdevcmakecommon
KDev::Project KDev::Language
KDev::Documentation
KF5::ItemModels
KF5::TextEditor)
install(TARGETS kdevcmakecommon ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
diff --git a/projectmanagers/custom-buildsystem/CMakeLists.txt b/projectmanagers/custom-buildsystem/CMakeLists.txt
index 0e1bb68dd8..5f0617635d 100644
--- a/projectmanagers/custom-buildsystem/CMakeLists.txt
+++ b/projectmanagers/custom-buildsystem/CMakeLists.txt
@@ -1,34 +1,33 @@
-project(kdevelop4-custom-buildsystem)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevcustombuildsystem\")
ecm_qt_declare_logging_category(custom_LOG_SRCS
HEADER debug.h
IDENTIFIER CUSTOMBUILDSYSTEM
CATEGORY_NAME "kdevelop.projectmanagers.custombuildsystem"
)
## KDevelop Plugin
set(custom_SRCS
custombuildsystemconfig.cpp
custombuildsystemplugin.cpp
custombuildjob.cpp
configconstants.cpp
configwidget.cpp
custombuildsystemconfigwidget.cpp
kcm_custombuildsystem.cpp
${custom_LOG_SRCS}
)
ki18n_wrap_ui(custom_SRCS configwidget.ui custombuildsystemconfigwidget.ui)
kconfig_add_kcfg_files(custom_SRCS kcfg_custombuildsystemconfig.kcfgc )
kdevplatform_add_plugin(kdevcustombuildsystem JSON kdevcustombuildsystem.json SOURCES ${custom_SRCS})
target_link_libraries(kdevcustombuildsystem
KDev::Project
KDev::Interfaces
KDev::Util
KDev::OutputView
)
## Unittests
if(BUILD_TESTING)
add_subdirectory( tests )
endif()
diff --git a/providers/ghprovider/CMakeLists.txt b/providers/ghprovider/CMakeLists.txt
index 772e72d52d..262a0ef97b 100644
--- a/providers/ghprovider/CMakeLists.txt
+++ b/providers/ghprovider/CMakeLists.txt
@@ -1,29 +1,28 @@
-project(ghprovider)
add_definitions(-DTRANSLATION_DOMAIN=\"kdevghprovider\")
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
add_subdirectory(icons)
set(kdevghprovider_PART_SRCS
ghlineedit.cpp
ghprovidermodel.cpp
ghproviderplugin.cpp
ghproviderwidget.cpp
ghresource.cpp
ghaccount.cpp
ghdialog.cpp
)
ecm_qt_declare_logging_category(kdevghprovider_PART_SRCS
HEADER debug.h
IDENTIFIER GHPROVIDER
CATEGORY_NAME "kdevelop.providers.ghprovider"
)
kdevplatform_add_plugin(kdevghprovider JSON kdevghprovider.json SOURCES ${kdevghprovider_PART_SRCS})
target_link_libraries(kdevghprovider
KF5::KIOWidgets
KDev::Interfaces
KDev::Vcs
KDev::OutputView
KDev::Util
)
diff --git a/utils/okteta/CMakeLists.txt b/utils/okteta/CMakeLists.txt
index 277f0b61f6..ef2a5ea539 100644
--- a/utils/okteta/CMakeLists.txt
+++ b/utils/okteta/CMakeLists.txt
@@ -1,25 +1,24 @@
-project( okteta )
add_definitions(-DTRANSLATION_DOMAIN=\"kdevokteta\")
SET( kdevokteta_PART_SRCS
kastentoolviewwidget.cpp
oktetatoolviewfactory.cpp
oktetaplugin.cpp
oktetadocument.cpp
oktetaview.cpp
oktetawidget.cpp
)
qt5_add_resources(kdevokteta_PART_SRCS kdevokteta.qrc)
kdevplatform_add_plugin(kdevokteta JSON kdevokteta.json SOURCES
${kdevokteta_PART_SRCS})
TARGET_LINK_LIBRARIES( kdevokteta
KDev::Interfaces
KDev::Project
KDev::Sublime
KDev::Shell
KF5::WidgetsAddons
OktetaKastenControllers
KastenControllers
)