Change Mac bunlde to use CMake's Mac bundle feature

This commit is contained in:
Gary Talent 2018-02-14 21:05:20 -06:00
parent 7e31eda638
commit 9d013ff481
4 changed files with 13 additions and 9 deletions

View File

@ -8,7 +8,8 @@
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include",
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include",
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include",
"${workspaceRoot}/src"
"${workspaceRoot}/src",
"${workspaceRoot}/deps/ox/src"
],
"defines": [],
"intelliSenseMode": "clang-x64",

View File

@ -4,7 +4,9 @@
"ostream": "cpp",
"array": "cpp",
"initializer_list": "cpp",
"utility": "cpp"
"utility": "cpp",
"__config": "cpp",
"__nullptr": "cpp"
},
"editor.insertSpaces": false,
"editor.tabSize": 3,

View File

@ -20,8 +20,8 @@ if(NOSTALGIA_BUILD_TYPE STREQUAL "GBA")
-fno-strict-aliasing
-mthumb-interwork
-mthumb
-std=c++17
)
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 14)
endif()
@ -44,11 +44,11 @@ endif()
if(APPLE)
set(CMAKE_MACOSX_RPATH OFF)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Library/nostalgia")
set(NOSTALGIA_DIST_BIN Nostalgia.app/Contents/MacOS)
set(NOSTALGIA_DIST_LIB Nostalgia.app/Contents/Library)
set(NOSTALGIA_DIST_PLUGIN Nostalgia.app/Contents/Plugins)
set(NOSTALGIA_DIST_RESOURCES Nostalgia.app/Contents/Resources)
set(NOSTALGIA_DIST_MAC_APP_CONTENTS Nostalgia.app/Contents)
set(NOSTALGIA_DIST_BIN nostalgia-studio.app/Contents/MacOS)
set(NOSTALGIA_DIST_LIB nostalgia-studio.app/Contents/Library)
set(NOSTALGIA_DIST_PLUGIN nostalgia-studio.app/Contents/Plugins)
set(NOSTALGIA_DIST_RESOURCES nostalgia-studio.app/Contents/Resources)
set(NOSTALGIA_DIST_MAC_APP_CONTENTS nostalgia-studio.app/Contents)
else()
set(CMAKE_INSTALL_RPATH "$ORIGIN" "$ORIGIN/../lib/nostalgia")
if(NOT ${NOSTALGIA_QT_PATH} STREQUAL "")

View File

@ -5,7 +5,7 @@ project(nostalgia-studio)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_executable(
nostalgia-studio
nostalgia-studio MACOSX_BUNDLE
main.cpp
mainwindow.cpp
)
@ -44,6 +44,7 @@ install(
nostalgia-studio
RUNTIME DESTINATION
${NOSTALGIA_DIST_BIN}
BUNDLE DESTINATION .
)
add_subdirectory(lib)