aboutsummaryrefslogtreecommitdiff
path: root/src/theme_builder
diff options
context:
space:
mode:
Diffstat (limited to 'src/theme_builder')
-rw-r--r--src/theme_builder/CMakeLists.txt12
-rw-r--r--src/theme_builder/main.cpp9
2 files changed, 21 insertions, 0 deletions
diff --git a/src/theme_builder/CMakeLists.txt b/src/theme_builder/CMakeLists.txt
new file mode 100644
index 00000000..3190f6fa
--- /dev/null
+++ b/src/theme_builder/CMakeLists.txt
@@ -0,0 +1,12 @@
+add_executable(cru_theme_builder main.cpp)
+
+if(APPLE)
+ set_target_properties(cru_theme_builder PROPERTIES
+ MACOSX_BUNDLE TRUE
+ MACOSX_BUNDLE_BUNDLE_NAME cru-theme-builder
+ MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.theme-builder
+ )
+endif()
+
+target_add_resources(cru_theme_builder cru/ui)
+target_link_libraries(cru_theme_builder PRIVATE cru_platform_bootstrap cru_ui)
diff --git a/src/theme_builder/main.cpp b/src/theme_builder/main.cpp
new file mode 100644
index 00000000..4ba2a28a
--- /dev/null
+++ b/src/theme_builder/main.cpp
@@ -0,0 +1,9 @@
+#include "cru/platform/bootstrap/Bootstrap.hpp"
+#include "cru/platform/gui/UiApplication.hpp"
+
+int main() {
+ std::unique_ptr<cru::platform::gui::IUiApplication> application(
+ cru::platform::bootstrap::CreateUiApplication());
+
+ return application->Run();
+}