diff options
Diffstat (limited to 'src/ui/CMakeLists.txt')
-rw-r--r-- | src/ui/CMakeLists.txt | 26 |
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() - |