Created attachment 231557 [details] test-KSyntaxHighlighting.shar The attached project is the minimal example of using KSyntaxHighlighting. Adding KF5SyntaxHighlighting to target_link_libraries() should be sufficient, but the project fails to find both KF5SyntaxHighlighting's headers and libraries.
cmake-3.22.1 kf5-syntax-highlighting-5.90.0
(In reply to Yuri Victorovich from comment #1) Moin moin Have you tried: target_link_libraries(minimal Qt5::Widgets KF5::SyntaxHighlighting) to use the imported target? mfg Tobias
(In reply to Tobias C. Berner from comment #2) This works. Thank you, Tobias!