Commit c4ee109a authored by Daniele E. Domenichelli's avatar Daniele E. Domenichelli
Browse files

Configure version in CMakeLists.txt instead of in main.cpp


Reviewed-by: David Edmundson's avatarDavid Edmundson <kde@davidedmundson.co.uk>
REVIEW: 107151
parent b15541ff
project(ktp-text-ui)
set(KTP_TEXT_UI_VERSION "0.5.1")
set(IS_KTP_INTERNAL_MODULE TRUE)
# Include our extra FindFoo.cmake files.
......@@ -38,6 +39,9 @@ if(TELEPATHY_LOGGER_QT4_FOUND)
)
endif()
configure_file(version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory(lib)
add_subdirectory(app)
add_subdirectory(config)
......
......@@ -17,6 +17,7 @@
*/
#include "adiumxtra-protocol-handler.h"
#include "version.h"
#include <KApplication>
#include <KAboutData>
......@@ -28,7 +29,7 @@ int main(int argc, char *argv[])
KAboutData aboutData("ktp-adiumxtra-protocol-handler",
0,
ki18n("AdiumXtra Protocol Handler"),
"0.3.60");
KTP_TEXT_UI_VERSION);
aboutData.addAuthor(ki18n("Dominik Schmidt"), ki18n("Developer"), "kde@dominik-schmidt.de");
aboutData.addAuthor(ki18n("Daniele E. Domenichelli"), ki18n("Developer"), "daniele.domenichelli@gmail.com");
aboutData.setProductName("telepathy/text-ui"); //set the correct name for bug reporting
......
......@@ -20,6 +20,7 @@
#include "telepathy-chat-ui.h"
#include "defines.h"
#include "version.h"
#include <TelepathyQt/ClientRegistrar>
#include <TelepathyQt/AccountFactory>
......@@ -36,7 +37,7 @@ int main(int argc, char *argv[])
{
KAboutData aboutData("ktp-text-ui", 0,
ki18n("Telepathy Text Ui"),
"0.5.1");
KTP_TEXT_UI_VERSION);
aboutData.addAuthor(ki18n("David Edmundson"), ki18n("Developer"), "david@davidedmundson.co.uk");
aboutData.addAuthor(ki18n("Dominik Schmidt"), ki18n("Developer"), "kde@dominik-schmidt.de");
aboutData.addAuthor(ki18n("Francesco Nwokeka"), ki18n("Developer"), "francesco.nwokeka@gmail.com");
......
......@@ -21,13 +21,14 @@
#include <KCmdLineArgs>
#include <KAboutData>
#include "log-viewer.h"
#include "version.h"
int main(int argc, char *argv[])
{
KAboutData aboutData("ktp-log-viewer",
0,
ki18n("KDE IM Log Viewer"),
"0.5.1");
KTP_TEXT_UI_VERSION);
aboutData.addAuthor(ki18n("David Edmundson"), ki18n("Developer"), "kde@davidedmundson.co.uk");
aboutData.addAuthor(ki18n("Daniele E. Domenichelli"), ki18n("Developer"), "daniele.domenichelli@gmail.com");
aboutData.setProductName("telepathy/log-viewer"); //set the correct name for bug reporting
......
#define KTP_TEXT_UI_VERSION "@KTP_TEXT_UI_VERSION@"
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