Add Build static lib option and fix the bug of static lib build.

This commit is contained in:
Mentalflow
2023-07-09 23:05:52 +08:00
parent 112bb6e07a
commit ea88707366
3 changed files with 56 additions and 22 deletions

View File

@ -98,12 +98,22 @@ set_target_properties(example PROPERTIES
)
#链接库
target_link_libraries(example PRIVATE
Qt6::Quick
fluentuiplugin
FramelessHelper::Core
FramelessHelper::Quick
)
if (FLUENTUI_BUILD_STATIC_LIB)
target_link_libraries(example PRIVATE
Qt6::Quick
fluentui
fluentuiplugin
FramelessHelper::Core
FramelessHelper::Quick
)
else()
target_link_libraries(example PRIVATE
Qt6::Quick
fluentuiplugin
FramelessHelper::Core
FramelessHelper::Quick
)
endif()
#安装
install(TARGETS example