From 67dd012c0f49898f1734c46d3bb264f59d056a8e Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 17 Jan 2022 22:55:09 +0800 Subject: ... --- src/ui/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/ui/CMakeLists.txt') diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt index 16b03309..0d42c8b7 100644 --- a/src/ui/CMakeLists.txt +++ b/src/ui/CMakeLists.txt @@ -1,6 +1,6 @@ set(CRU_UI_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/ui) -add_library(cru_ui STATIC +add_library(cru_ui SHARED Helper.cpp ThemeManager.cpp UiManager.cpp @@ -26,6 +26,8 @@ add_library(cru_ui STATIC helper/ShortcutHub.cpp host/LayoutPaintCycler.cpp host/WindowHost.cpp + mapper/Mapper.cpp + mapper/MapperRegistry.cpp render/BorderRenderObject.cpp render/CanvasRenderObject.cpp render/FlexLayoutRenderObject.cpp @@ -39,7 +41,6 @@ add_library(cru_ui STATIC style/Styler.cpp style/StyleRule.cpp style/StyleRuleSet.cpp - xml/XmlMapper.cpp - xml/XmlMapperRegistry.cpp ) -target_link_libraries(cru_ui PUBLIC cru_platform_gui) +target_compile_definitions(cru_ui PRIVATE CRU_UI_EXPORT_API) +target_link_libraries(cru_ui PUBLIC cru_platform_gui cru_xml) -- cgit v1.2.3