move libdir cmake a bit

This commit is contained in:
Martin Rotter 2024-05-22 08:11:20 +02:00
parent c61ecaaa40
commit 6efd8b46ab

View file

@ -509,6 +509,7 @@ endif()
target_compile_definitions(rssguard target_compile_definitions(rssguard
PRIVATE PRIVATE
RSSGUARD_DLLSPEC=Q_DECL_EXPORT RSSGUARD_DLLSPEC=Q_DECL_EXPORT
RSSGUARD_LIBDIR="${CMAKE_INSTALL_LIBDIR}"
) )
target_include_directories(rssguard target_include_directories(rssguard
@ -636,10 +637,6 @@ if(WIN32 OR OS2)
elseif(UNIX AND NOT APPLE AND NOT ANDROID) elseif(UNIX AND NOT APPLE AND NOT ANDROID)
include (GNUInstallDirs) include (GNUInstallDirs)
install(TARGETS rssguard DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(TARGETS rssguard DESTINATION ${CMAKE_INSTALL_LIBDIR})
target_compile_definitions(rssguard
PRIVATE
RSSGUARD_LIBDIR="${CMAKE_INSTALL_LIBDIR}"
)
set(HEADERS_FOLDER "${CMAKE_INSTALL_INCLUDEDIR}/librssguard") set(HEADERS_FOLDER "${CMAKE_INSTALL_INCLUDEDIR}/librssguard")
elseif(APPLE) elseif(APPLE)
install(TARGETS rssguard DESTINATION Contents/MacOS) install(TARGETS rssguard DESTINATION Contents/MacOS)