stdware / qwindowkit

Cross-platform frameless window framework for Qt. Support Windows, macOS, Linux.
Apache License 2.0
490 stars 78 forks source link

Cannot find QWindowKit::Quick #123

Closed mcattell closed 1 week ago

mcattell commented 1 month ago

I'm trying to link to QWindowsKit for a QtQuick project and I modified the project's cmake file to find the package. I successfully built and installed the QWindowsKit library and installed it to a path known to the project by setting QWindowKit_DIR to the correct install path and adding these to my project's CMakeLists.txt:

find_package(QWindowKit COMPONENTS Core Widgets Quick REQUIRED) target_link_libraries(${PROJECT_NAME} PUBLIC QWindowKit::Quick)

When I try to run cmake on my project, I see the following output: CMake Error at ASConsoleLib/CMakeLists.txt:161 (target_link_libraries): [cmake] Target "XXXXXXXX" links to: [cmake] [cmake] QWindowKit::Quick [cmake] [cmake] but the target was not found. Possible reasons include: [cmake] [cmake] There is a typo in the target name. [cmake] A find_package call is missing for an IMPORTED target. [cmake] * An ALIAS target is missing. [cmake]

Is there something I'm missing from the build/install? The release and debug libraries installed in the lib directory of the install path are QWKCore.lib QWKCored.lib QWKWidgets.lib QWKWidgetsd.lib

I don't see anything for QWKQuick?

SineStriker commented 1 month ago
CMAKE -DQWINDOWKIT_BUILD_QUICK:BOOL=TRUE ...