Commit 6bb1f691 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

avoid need for config.h

parent 8ebf7285
Pipeline #176782 passed with stage
in 4 minutes and 10 seconds
......@@ -6,8 +6,6 @@
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "config.h"
#include "kateapp.h"
#include "katerunninginstanceinfo.h"
#include "katewaiter.h"
......
......@@ -6,7 +6,6 @@
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "config.h"
#include "kateapp.h"
#include <KAboutData>
......
......@@ -6,7 +6,8 @@ install(TARGETS kateprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK
# ensure right translations domain, we use one kate.po(t) for lib + apps
target_compile_definitions(kateprivate PRIVATE TRANSLATION_DOMAIN="kate")
configure_file(config.h.in config.h)
# export version to be used by Kate/KWrite/...
target_compile_definitions(kateprivate PUBLIC KATE_VERSION="${RELEASE_SERVICE_VERSION}")
include(GenerateExportHeader)
generate_export_header(
......@@ -21,7 +22,7 @@ target_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/session
${CMAKE_CURRENT_SOURCE_DIR}/quickopen
${CMAKE_CURRENT_BINARY_DIR} # kateprivate_export.h + config.h
${CMAKE_CURRENT_BINARY_DIR} # kateprivate_export.h
)
find_package(
......@@ -50,6 +51,7 @@ target_link_libraries(
if(KF5Activities_FOUND)
target_link_libraries(kateprivate PUBLIC KF5::Activities)
target_compile_definitions(kateprivate PUBLIC -DKF5Activities_FOUND)
endif()
# optional KUserFeedback integration
......
#ifndef KATE_CONFIG_H
#define KATE_CONFIG_H
/* config.h. Generated by cmake from config.h.cmake */
#define KATE_VERSION "${RELEASE_SERVICE_VERSION}"
#cmakedefine KF5Activities_FOUND
#endif
......@@ -9,7 +9,6 @@
// BEGIN Includes
#include "kateviewmanager.h"
#include "config.h"
#include "kateapp.h"
#include "katemainwindow.h"
#include "kateupdatedisabler.h"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment