aboutsummaryrefslogtreecommitdiff
path: root/CruUI/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CruUI/CMakeLists.txt')
-rw-r--r--CruUI/CMakeLists.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/CruUI/CMakeLists.txt b/CruUI/CMakeLists.txt
new file mode 100644
index 00000000..5384b113
--- /dev/null
+++ b/CruUI/CMakeLists.txt
@@ -0,0 +1,33 @@
+cmake_minimum_required(VERSION 3.12)
+project(CruUI)
+
+if (MSVC_VERSION GREATER_EQUAL "1900")
+ include(CheckCXXCompilerFlag)
+ CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported)
+ if (_cpp_latest_flag_supported)
+ add_compile_options("/std:c++latest")
+ endif()
+endif()
+
+include_directories(.)
+
+add_executable(CruUI
+ graph/graph.cpp
+ ui/animations/animation.cpp
+ ui/controls/button.cpp
+ ui/controls/linear_layout.cpp
+ ui/controls/margin_container.cpp
+ ui/controls/text_block.cpp
+ ui/controls/text_box.cpp
+ ui/controls/text_control.cpp
+ ui/controls/toggle_button.cpp
+ ui/events/ui_event.cpp
+ ui/control.cpp
+ ui/layout_base.cpp
+ ui/ui_base.cpp
+ ui/window.cpp
+ application.cpp
+ base.cpp
+ exception.cpp
+ main.cpp
+ timer.cpp)