From c036cf604fd23200bc92dc9a16752aa50ed87d16 Mon Sep 17 00:00:00 2001
From: archshift <admin@archshift.com>
Date: Sat, 7 Mar 2015 16:07:49 -0800
Subject: [PATCH] Build app bundles on OS X. Fixes the issue where the menubar
 would not appear.

---
 src/citra_qt/CMakeLists.txt | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index a1ad00f57..ff780cad4 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -64,7 +64,11 @@ else()
     qt4_wrap_ui(UI_HDRS ${UIS})
 endif()
 
-add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
+if (APPLE)
+    add_executable(citra-qt MACOSX_BUNDLE ${SRCS} ${HEADERS} ${UI_HDRS})
+else()
+    add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
+endif()
 target_link_libraries(citra-qt core common video_core qhexedit)
 target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS})
 target_link_libraries(citra-qt ${PLATFORM_LIBRARIES})