Link against xkbcommon
Otherwise the build fails with missing xkbcommon headers
This commit is contained in:
		
							parent
							
								
									cd409ed50e
								
							
						
					
					
						commit
						549f5ad682
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -33,6 +33,9 @@ find_package(WaylandScanner)
 | 
				
			||||||
find_package(QtWaylandScanner)
 | 
					find_package(QtWaylandScanner)
 | 
				
			||||||
find_package(Wayland 1.3 COMPONENTS Client Server)
 | 
					find_package(Wayland 1.3 COMPONENTS Client Server)
 | 
				
			||||||
find_package(WaylandProtocols)
 | 
					find_package(WaylandProtocols)
 | 
				
			||||||
 | 
					find_package(PkgConfig REQUIRED)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pkg_check_modules(XKBCOMMON xkbcommon REQUIRED IMPORTED_TARGET)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set_package_properties(Wayland PROPERTIES
 | 
					set_package_properties(Wayland PROPERTIES
 | 
				
			||||||
                       TYPE REQUIRED)
 | 
					                       TYPE REQUIRED)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -16,7 +16,7 @@ ecm_qt_declare_logging_category(LAYER_SHELL_SOURCES
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_library(LayerShellQtInterface SHARED qwaylandlayersurface.cpp interfaces/window.cpp interfaces/shell.cpp qwaylandlayershellintegration.cpp qwaylandlayershell.cpp ${LAYER_SHELL_SOURCES})
 | 
					add_library(LayerShellQtInterface SHARED qwaylandlayersurface.cpp interfaces/window.cpp interfaces/shell.cpp qwaylandlayershellintegration.cpp qwaylandlayershell.cpp ${LAYER_SHELL_SOURCES})
 | 
				
			||||||
target_link_libraries(LayerShellQtInterface PRIVATE Qt::Gui Qt::WaylandClientPrivate Qt::XkbCommonSupportPrivate Wayland::Client)
 | 
					target_link_libraries(LayerShellQtInterface PRIVATE Qt::Gui Qt::WaylandClientPrivate Qt::XkbCommonSupportPrivate Wayland::Client PkgConfig::XKBCOMMON)
 | 
				
			||||||
target_include_directories(LayerShellQtInterface PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/LayerShellQt>"
 | 
					target_include_directories(LayerShellQtInterface PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/LayerShellQt>"
 | 
				
			||||||
                                              INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/>"
 | 
					                                              INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR}/>"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
| 
						 | 
					@ -27,7 +27,7 @@ set_target_properties(LayerShellQtInterface PROPERTIES VERSION   ${LAYERSHELLQT_
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
add_library(layer-shell SHARED qwaylandlayershellintegrationplugin.cpp)
 | 
					add_library(layer-shell SHARED qwaylandlayershellintegrationplugin.cpp)
 | 
				
			||||||
target_link_libraries(layer-shell LayerShellQtInterface Qt::WaylandClient Qt::WaylandClientPrivate Qt::XkbCommonSupportPrivate Wayland::Client)
 | 
					target_link_libraries(layer-shell LayerShellQtInterface Qt::WaylandClient Qt::WaylandClientPrivate Qt::XkbCommonSupportPrivate Wayland::Client PkgConfig::XKBCOMMON)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ecm_generate_headers(LayerShellQt_HEADERS
 | 
					ecm_generate_headers(LayerShellQt_HEADERS
 | 
				
			||||||
    HEADER_NAMES
 | 
					    HEADER_NAMES
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue