From edd1ea90b9631aa94540b50e3f043c4005975a7b Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Thu, 18 May 2023 15:19:39 +0800 Subject: [PATCH] update --- example/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index a764644..35a8f55 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -90,6 +90,7 @@ set_target_properties(example PROPERTIES WIN32_EXECUTABLE TRUE ) + #链接库 target_link_libraries(example PRIVATE Qt6::Quick @@ -98,6 +99,13 @@ target_link_libraries(example PRIVATE fluentuiplugin ) +#导入头文件 +set(QML_PLUGIN_DIRECTORY ${CMAKE_PREFIX_PATH}/qml/FluentUI) +target_include_directories( + example PRIVATE + ${QML_PLUGIN_DIRECTORY} +) + #安装 install(TARGETS example BUNDLE DESTINATION .