Commit 4831cdc6 authored by Nicolas Fella's avatar Nicolas Fella

Port to ecm_setup_version

parent b4ba0dae
......@@ -10,8 +10,6 @@ set(KF5_MIN_VERSION "5.74")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
configure_file(version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/version.h)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} )
......@@ -43,11 +41,17 @@ include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMOptionalAddSubdirectory)
include(FeatureSummary)
include(KDEClangFormat)
include(ECMSetupVersion)
if (EXISTS "${CMAKE_SOURCE_DIR}/.git")
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x054200)
endif()
ecm_setup_version(${PROJECT_VERSION}
VARIABLE_PREFIX BLUEDEVIL
VERSION_HEADER ${CMAKE_BINARY_DIR}/version.h
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(src)
......
......@@ -70,7 +70,7 @@ BlueDevilDaemon::BlueDevilDaemon(QObject *parent, const QList<QVariant>&)
KAboutData aboutData(
QStringLiteral("bluedevildaemon"),
i18n("Bluetooth Daemon"),
BLUEDEVIL_VERSION,
QStringLiteral(BLUEDEVIL_VERSION_STRING),
i18n("Bluetooth Daemon"),
KAboutLicense::GPL,
i18n("(c) 2010, UFO Coders")
......
......@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
KAboutData aboutData(QStringLiteral("bluedevilsendfile"),
i18n("Bluetooth Send File Wizard"),
BLUEDEVIL_VERSION,
QStringLiteral(BLUEDEVIL_VERSION_STRING),
i18n("Bluetooth Send File Wizard"),
KAboutLicense::GPL,
i18n("(c) 2010, UFO Coders"));
......
......@@ -23,7 +23,7 @@ int main(int argc, char *argv[])
KAboutData aboutData(QStringLiteral("bluedevilwizard"),
i18n("Bluetooth Device Wizard"),
BLUEDEVIL_VERSION,
QStringLiteral(BLUEDEVIL_VERSION_STRING),
i18n("Bluetooth Device Wizard"),
KAboutLicense::GPL,
i18n("(c) 2010, UFO Coders"));
......
#ifndef BLUEDEVILVERSION_H
#define BLUEDEVILVERSION_H
#define BLUEDEVIL_VERSION QStringLiteral("${PROJECT_VERSION}")
#endif
Markdown is supported
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