diff options
| author | 杨宇千 <crupest@outlook.com> | 2019-03-28 20:39:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-28 20:39:36 +0800 |
| commit | c45a6e62298e972f5945f5f3461ed723aea80317 (patch) | |
| tree | f46ef303ee87a8e3814ea8743bd7062d432bfee3 /src/CMakeLists.txt | |
| parent | b028e74a48de181ca078ad3bf4ababf4fa146cd3 (diff) | |
| parent | 37216f211b0e22205a3a0d3373d985fc68aea59b (diff) | |
| download | cru-c45a6e62298e972f5945f5f3461ed723aea80317.tar.gz cru-c45a6e62298e972f5945f5f3461ed723aea80317.tar.bz2 cru-c45a6e62298e972f5945f5f3461ed723aea80317.zip | |
Merge pull request #37 from crupest/render
Refactor.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 00000000..b4097d63 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,37 @@ +add_library(cru_ui STATIC + application.cpp + cru_debug.cpp + exception.cpp + timer.cpp + graph/graph_manager.cpp + graph/window_render_target.cpp + ui/content_control.cpp + ui/control.cpp + ui/input_util.cpp + ui/layout_control.cpp + ui/no_child_control.cpp + ui/ui_manager.cpp + ui/window_class.cpp + ui/window.cpp + ui/animations/animation.cpp + ui/controls/button.cpp + ui/controls/flex_layout.cpp + ui/controls/text_block.cpp + ui/render/border_render_object.cpp + ui/render/flex_layout_render_object.cpp + ui/render/render_object.cpp + ui/render/text_render_object.cpp + ui/render/window_render_object.cpp + util/string_util.cpp) + + +target_include_directories(cru_ui PUBLIC .) + +if(WIN32) +target_link_libraries(cru_ui PRIVATE D3D11 D2d1 DWrite) +target_compile_definitions(cru_ui PUBLIC UNICODE _UNICODE) # use unicode +endif() + +add_executable(demo WIN32 main.cpp) + +target_link_libraries(demo PRIVATE cru_ui) |
