aboutsummaryrefslogtreecommitdiff
path: root/src/ui/CMakeLists.txt
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
committercrupest <crupest@outlook.com>2019-05-27 00:54:58 +0800
commit3a3d0bdaaf932f6ca17f2de3447c989127bc143a (patch)
tree358b9ea6cd6dd8eedd8bc915b98a1f27d0c2dff7 /src/ui/CMakeLists.txt
parent9e2d63adb90c293f4bc2893b0de7655aea2ecc85 (diff)
downloadcru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.gz
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.tar.bz2
cru-3a3d0bdaaf932f6ca17f2de3447c989127bc143a.zip
...
Diffstat (limited to 'src/ui/CMakeLists.txt')
-rw-r--r--src/ui/CMakeLists.txt26
1 files changed, 22 insertions, 4 deletions
diff --git a/src/ui/CMakeLists.txt b/src/ui/CMakeLists.txt
index 900948ca..a725c54b 100644
--- a/src/ui/CMakeLists.txt
+++ b/src/ui/CMakeLists.txt
@@ -1,3 +1,5 @@
+file(GLOB CRU_UI_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/ui)
+
add_library(cru_ui STATIC
content_control.cpp
control.cpp
@@ -12,11 +14,27 @@ add_library(cru_ui STATIC
render/flex_layout_render_object.cpp
render/render_object.cpp
render/text_render_object.cpp
- render/window_render_object.cpp)
-
-target_include_directories(cru_ui PUBLIC ${PROJECT_SOURCE_DIR}/include .)
+ render/window_render_object.cpp
+)
+target_sources(cru_ui PUBLIC
+ ${CRU_UI_INCLUDE_DIR}/content_control.hpp
+ ${CRU_UI_INCLUDE_DIR}/control.hpp
+ ${CRU_UI_INCLUDE_DIR}/layout_control.hpp
+ ${CRU_UI_INCLUDE_DIR}/no_child_control.hpp
+ ${CRU_UI_INCLUDE_DIR}/ui_manager.hpp
+ ${CRU_UI_INCLUDE_DIR}/window.hpp
+ ${CRU_UI_INCLUDE_DIR}/controls/button.hpp
+ ${CRU_UI_INCLUDE_DIR}/controls/flex_layout.hpp
+ ${CRU_UI_INCLUDE_DIR}/controls/text_block.hpp
+ ${CRU_UI_INCLUDE_DIR}/event/ui_event.hpp
+ ${CRU_UI_INCLUDE_DIR}/render/border_render_object.hpp
+ ${CRU_UI_INCLUDE_DIR}/render/flex_layout_render_object.hpp
+ ${CRU_UI_INCLUDE_DIR}/render/render_object.hpp
+ ${CRU_UI_INCLUDE_DIR}/render/text_render_object.hpp
+ ${CRU_UI_INCLUDE_DIR}/render/window_render_object.hpp
+)
+target_link_libraries(cru_ui PUBLIC cru_base)
if(WIN32)
target_link_libraries(cru_ui PUBLIC cru_win_native)
endif()
-