this exist answer can not fix my question
In qt official example, I use following CMakeLists.txt
SET(CMAKE_PREFIX_PATH /media/roroco/disk750/Downloads/qtbase)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5Widgets)
find_library(xcb NAMES qxcb PATHS /media/roroco/disk750/Downloads/qtbase/plugins/platforms)
add_executable(systray main.cpp window.cpp systray.qrc)
target_link_libraries(systray Qt5::Widgets ${xcb})
and I get
This application failed to start because it could not find or load the Qt platform plugin "xcb".
How to add "xcb" plugin to cmake?
update
I'm sure find_library(xcb
find the lib "/media/roroco/disk750/Downloads/qtbase/plugins/platforms/libqxcb.so".