set define only where needed
This commit is contained in:
parent
b7b8005049
commit
246f327785
|
@ -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}")
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue