aboutsummaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/input_method/CMakeLists.txt10
-rw-r--r--demos/main/CMakeLists.txt11
-rw-r--r--demos/scroll_view/CMakeLists.txt9
3 files changed, 13 insertions, 17 deletions
diff --git a/demos/input_method/CMakeLists.txt b/demos/input_method/CMakeLists.txt
index 7f8be37a..3a290f3a 100644
--- a/demos/input_method/CMakeLists.txt
+++ b/demos/input_method/CMakeLists.txt
@@ -1,12 +1,10 @@
+add_executable(demo_input_method main.cpp)
-if(NOT APPLE)
- add_executable(demo_input_method main.cpp)
-else()
- add_executable(demo_input_method MACOSX_BUNDLE main.cpp)
+if(APPLE)
set_target_properties(demo_input_method PROPERTIES
- BUNDLE TRUE
- MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.demo-input-method
+ MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_BUNDLE_NAME demo-input-method
+ MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.demo-input-method
)
endif()
diff --git a/demos/main/CMakeLists.txt b/demos/main/CMakeLists.txt
index 2f8ef9cb..6f995ee0 100644
--- a/demos/main/CMakeLists.txt
+++ b/demos/main/CMakeLists.txt
@@ -1,11 +1,10 @@
-if(NOT APPLE)
- add_executable(demo_main main.cpp)
-else()
- add_executable(demo_main MACOSX_BUNDLE main.cpp)
+add_executable(demo_main main.cpp)
+
+if(APPLE)
set_target_properties(demo_main PROPERTIES
- BUNDLE TRUE
- MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.demo-main
+ MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_BUNDLE_NAME demo-main
+ MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.demo-main
)
endif()
diff --git a/demos/scroll_view/CMakeLists.txt b/demos/scroll_view/CMakeLists.txt
index b84bcea2..2c6be535 100644
--- a/demos/scroll_view/CMakeLists.txt
+++ b/demos/scroll_view/CMakeLists.txt
@@ -1,9 +1,8 @@
-if(NOT APPLE)
- add_executable(demo_scroll_view main.cpp)
-else()
- add_executable(demo_scroll_view MACOSX_BUNDLE main.cpp)
+add_executable(demo_scroll_view main.cpp)
+
+if(APPLE)
set_target_properties(demo_scroll_view PROPERTIES
- BUNDLE TRUE
+ MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_GUI_IDENTIFIER life.crupest.cru.demo-scroll-view
MACOSX_BUNDLE_BUNDLE_NAME demo-scroll-view
)