From 246f32778556f1d81587977842c039cdb65f7178 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 26 Feb 2015 13:55:50 +0100 Subject: [PATCH] set define only where needed --- CMakeLists.txt | 3 --- src/core/CMakeLists.txt | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7943c1f..c6468a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,10 +57,7 @@ endif(DOXYGEN_FOUND) set(LIBSNORE_PLUGIN_PATH ${KDE_INSTALL_PLUGINDIR}/libsnore${SNORE_SUFFIX}) -set(LIBSNORE_FULL_PLUGIN_PATH ${KDE_INSTALL_FULL_PLUGINDIR}/libsnore${SNORE_SUFFIX}) - set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH}) -add_definitions(-DLIBSNORE_PLUGIN_PATH="${LIBSNORE_FULL_PLUGIN_PATH}" -DSNORE_SUFFIX="${SNORE_SUFFIX}") message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}") diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 02ca5bd..b0f97f9 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -51,6 +51,10 @@ set_target_properties( libsnore PROPERTIES VERSION "${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}.${SNORE_VERSION_PATCH}.${SNORE_VERSION_SUFFIX}" SOVERSION "${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}" EXPORT_NAME Libsnore) +set_property( TARGET libsnore + APPEND + PROPERTY COMPILE_DEFINITIONS LIBSNORE_PLUGIN_PATH="${KDE_INSTALL_FULL_PLUGINDIR}/libsnore${SNORE_SUFFIX}" SNORE_SUFFIX="${SNORE_SUFFIX}" +) target_link_libraries( libsnore PUBLIC Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Network) add_library(Snore::Libsnore ALIAS libsnore)