diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index a0c6818d1..3d117c538 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -342,9 +342,6 @@ if(TARGET KF6::DBusAddons AND NOT WIN32) endif() if (TARGET KUnifiedPush) - target_compile_definitions(neochat PUBLIC -DHAVE_KUNIFIEDPUSH) - target_link_libraries(neochat PUBLIC KUnifiedPush) - if (NOT ANDROID) configure_file(org.kde.neochat.service.in ${CMAKE_CURRENT_BINARY_DIR}/org.kde.neochat.service) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.neochat.service DESTINATION ${KDE_INSTALL_DBUSSERVICEDIR}) diff --git a/src/libneochat/CMakeLists.txt b/src/libneochat/CMakeLists.txt index 07b6dc4a2..de52563de 100644 --- a/src/libneochat/CMakeLists.txt +++ b/src/libneochat/CMakeLists.txt @@ -105,3 +105,8 @@ if(NOT ANDROID) ) target_compile_definitions(LibNeoChat PUBLIC -DHAVE_ICU) endif() + +if (TARGET KUnifiedPush) + target_compile_definitions(LibNeoChat PUBLIC -DHAVE_KUNIFIEDPUSH) + target_link_libraries(LibNeoChat PUBLIC KUnifiedPush) +endif()