CMake: massage IMPORTED targets and module path

- Add the Calamares CMake-modules to the search path automatically
- Export to CalamaresTargets.cmake and use namespace Calamares::
- Document imported targets
- Find Qt, because the translations machinery will need macros from that
- The installed lib links to IMPORTED libraries from KF5, so we need
  to find them (again) as well.
This commit is contained in:
Adriaan de Groot 2020-06-10 00:31:13 +02:00
parent f59b6da799
commit dc16afac4a
5 changed files with 68 additions and 19 deletions

View file

@ -93,7 +93,7 @@ function(calamares_add_library)
# add link targets
target_link_libraries(${target}
LINK_PUBLIC ${CALAMARES_LIBRARIES}
LINK_PUBLIC ${Calamares_LIBRARIES}
Qt5::Core
Qt5::Gui
Qt5::Widgets