Commit 3caf5e79 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Move some find_package dependencies to the children directories as agreed

parent 48cb087e
......@@ -29,7 +29,7 @@ set(kdeconnectcore_SRCS
device.cpp
)
add_library(kdeconnectcore SHARED ${kdeconnectcore_SRCS})
add_library(kdeconnectcore ${kdeconnectcore_SRCS})
target_link_libraries(kdeconnectcore
PUBLIC
Qt5::Network
......
find_package(KF5 REQUIRED COMPONENTS KIO)
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-fileitemaction")
include_directories(${CMAKE_SOURCE_DIR})
......
......@@ -2,11 +2,9 @@ project(kdeconnectpluginkcm)
add_definitions(-DTRANSLATION_DOMAIN=\"kdeconnect-core\")
set(kdeconnectpluginkcm_SRCS
kdeconnectpluginkcm.cpp
)
find_package(KF5 REQUIRED COMPONENTS KCMUtils)
add_library(kdeconnectpluginkcm SHARED ${kdeconnectpluginkcm_SRCS})
add_library(kdeconnectpluginkcm kdeconnectpluginkcm.cpp)
target_link_libraries(kdeconnectpluginkcm
PUBLIC
kdeconnectcore
......
include_directories(${CMAKE_SOURCE_DIR})
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kio")
find_package(KF5 REQUIRED COMPONENTS KIO)
set(kio_kdeconnect_PART_SRCS
kiokdeconnect.cpp
......
set(kdeconnect_pausemusic_SRCS
pausemusicplugin.cpp
)
find_package(KF5 REQUIRED COMPONENTS KCMUtils)
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES ${kdeconnect_pausemusic_SRCS})
kdeconnect_add_plugin(kdeconnect_pausemusic JSON kdeconnect_pausemusic.json SOURCES pausemusicplugin.cpp)
target_link_libraries(kdeconnect_pausemusic
kdeconnectcore
......
find_package(KF5 REQUIRED COMPONENTS Notifications)
find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
set(kdeconnect_sftp_SRCS
mounter.cpp
......
find_package(KF5 REQUIRED COMPONENTS Notifications)
find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
set(kdeconnect_share_SRCS
shareplugin.cpp
......
find_package(KF5 REQUIRED COMPONENTS KIO)
include_directories(
${KDEConnectCore_BINARY_DIR}
${CMAKE_SOURCE_DIR}
......
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