Commit 9e49f809 authored by Volker Krause's avatar Volker Krause
Browse files

Rename the version variables to KPkPass too

parent 6f2bfeac
cmake_minimum_required(VERSION 3.0) cmake_minimum_required(VERSION 3.0)
project(itinerary VERSION 0.0.1) project(KPkPass VERSION 0.0.1)
find_package(ECM 5.38 REQUIRED NO_MODULE) find_package(ECM 5.38 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake) set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake)
...@@ -15,8 +15,8 @@ include(KDECMakeSettings) ...@@ -15,8 +15,8 @@ include(KDECMakeSettings)
include(GenerateExportHeader) include(GenerateExportHeader)
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
ecm_setup_version(PROJECT VARIABLE_PREFIX ITINERARY ecm_setup_version(PROJECT VARIABLE_PREFIX KPKPASS
VERSION_HEADER itinerary_version.h VERSION_HEADER kpkpass_version.h
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KPkPassConfigVersion.cmake" PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KPkPassConfigVersion.cmake"
) )
......
...@@ -14,8 +14,8 @@ ecm_qt_declare_logging_category(pkpass_srcs ...@@ -14,8 +14,8 @@ ecm_qt_declare_logging_category(pkpass_srcs
add_library(KPkPass SHARED ${pkpass_srcs}) add_library(KPkPass SHARED ${pkpass_srcs})
generate_export_header(KPkPass BASE_NAME KPkPass) generate_export_header(KPkPass BASE_NAME KPkPass)
set_target_properties(KPkPass PROPERTIES set_target_properties(KPkPass PROPERTIES
VERSION ${ITINERARY_VERSION_STRING} VERSION ${KPKPASS_VERSION_STRING}
SOVERSION ${ITINERARY_SOVERSION} SOVERSION ${KPKPASS_SOVERSION}
EXPORT_NAME KPkPass EXPORT_NAME KPkPass
) )
target_include_directories(KPkPass INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}>") target_include_directories(KPkPass INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}>")
......
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