Skip to content

chore: 添加 UI_CORE_BUILD_DEMO 选项以可选编译 ui-demo-uix.exe - #15

Closed
WuJunkai2004 wants to merge 1 commit into
ghboke:mainfrom
WuJunkai2004:chore/cmake-demo-toggle
Closed

WuJunkai2004 wants to merge 1 commit into
ghboke:mainfrom
WuJunkai2004:chore/cmake-demo-toggle

Conversation

@WuJunkai2004

Copy link
Copy Markdown

添加该选项后,用户使用cmake 拉取core-ui作为依赖并编译时,可以关闭 ui-demo-uix.exe的编译,加快构建过程

include(FetchContent)

FetchContent_Declare(
    core-ui
    GIT_REPOSITORY https://github.com/ghboke/core-ui.git
    GIT_TAG        v1.7.0
    GIT_SHALLOW    TRUE
)

set(UI_CORE_STATIC ON CACHE BOOL "" FORCE)
set(UI_CORE_BUILD_STATIC_ARCHIVE OFF CACHE BOOL "" FORCE)

set(UI_CORE_BUILD_DEMO OFF CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(core-ui)

@WuJunkai2004 WuJunkai2004 closed this by deleting the head repository Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant