Move some find_package dependencies to the children directories as agreed
This commit is contained in:
parent
48cb087ec8
commit
3caf5e7908
8 changed files with 12 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
add_definitions(-DTRANSLATION_DOMAIN="kdeconnect-kio")
|
||||
find_package(KF5 REQUIRED COMPONENTS KIO)
|
||||
|
||||
set(kio_kdeconnect_PART_SRCS
|
||||
kiokdeconnect.cpp
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
find_package(KF5 REQUIRED COMPONENTS Notifications)
|
||||
find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
|
||||
|
||||
set(kdeconnect_sftp_SRCS
|
||||
mounter.cpp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
find_package(KF5 REQUIRED COMPONENTS Notifications)
|
||||
find_package(KF5 REQUIRED COMPONENTS Notifications KIO)
|
||||
|
||||
set(kdeconnect_share_SRCS
|
||||
shareplugin.cpp
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
find_package(KF5 REQUIRED COMPONENTS KIO)
|
||||
|
||||
include_directories(
|
||||
${KDEConnectCore_BINARY_DIR}
|
||||
${CMAKE_SOURCE_DIR}
|
||||
|
|
Loading…
Reference in a new issue