Compile package structure plugins into expected subdirectory

Summary: This means they're found by unit tests pre-installation

Test Plan:
Removed installed files
Ran make (but not make install)
ConfigModelTest now passes

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D22682
This commit is contained in:
David Edmundson 2019-07-24 17:07:29 +01:00
parent b0541ffbff
commit af2a7fbf69

View File

@ -2,6 +2,12 @@ function(install_package_structure name)
add_library(${name}_packagestructure MODULE ${name}package.cpp packages.cpp)
target_link_libraries(${name}_packagestructure PRIVATE KF5::Package KF5::Plasma KF5::Declarative KF5::I18n)
install(TARGETS ${name}_packagestructure DESTINATION ${KDE_INSTALL_PLUGINDIR}/kpackage/packagestructure)
set_target_properties(
${name}_packagestructure
PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/kpackage/packagestructure"
)
endfunction()
install_package_structure(plasmageneric)