Fix:Build:Create navit as bundle
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 23 Aug 2011 12:17:14 +0000 (12:17 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 23 Aug 2011 12:17:14 +0000 (12:17 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4697 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/CMakeLists.txt

index 09de781..7358921 100644 (file)
@@ -69,7 +69,11 @@ if(NOT ANDROID)
    if(WIN32 OR WINCE AND NOT WIN_OMIT_RESOURCES)
       add_executable (navit start.c ${CMAKE_CURRENT_SOURCE_DIR}/gui/win32/resources/resource.rc)
    else()
-      add_executable (navit start.c)
+      if (APPLE)
+          add_executable (navit MACOSX_BUNDLE start.c)
+      else()
+          add_executable (navit start.c)
+      endif()
    endif()
    
    target_link_libraries (navit ${NAVIT_LIBNAME})