From c5aed5f79b0cafc49cf75df3b13a788e61206f6f Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 4 Aug 2014 10:01:27 +0200 Subject: [PATCH] Companion MAC compilation fix --- companion/src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index ab7fe3e70..6d9ae79e3 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -338,7 +338,11 @@ if(WIN32) set(simu_SRCS ${simu_SRCS} icon.rc) endif() -add_executable(simulator WIN32 ${simu_SRCS}) +if(APPLE) + add_executable(simulator MACOSX_BUNDLE ${simu_SRCS}) +else() + add_executable(simulator WIN32 ${simu_SRCS}) +endif() if(SDL_FOUND) target_link_libraries(simulator simulation common ${QT_LIBRARIES} ${PTHREAD_LIBRARY} ${SDL_LIBRARY} ${PHONON_LIBS})