Skip to content

Commit

Permalink
Cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 8, 2015
1 parent 8b3b5d7 commit 61798d0
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
21 changes: 19 additions & 2 deletions base/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,26 @@ include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../lib")
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../lib/core")

set(SRCS "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp")

if(APPLE)
set(ICON_SRC "${CMAKE_CURRENT_SOURCE_DIR}/../lib/resources/i-score.icns")
endif()
if(DEPLOYMENT_BUILD)
add_executable(${APPNAME} WIN32 MACOSX_BUNDLE ${SRCS})
add_executable(${APPNAME} WIN32 MACOSX_BUNDLE ${SRCS} ${ICON_SRC})
if (APPLE)
set_source_files_properties(${ICON_SRC} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")

set_target_properties(${APPNAME}
PROPERTIES
MACOSX_BUNDLE_INFO_STRING "i-score, an interactive sequencer for the intermedia arts"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.i-score"
MACOSX_BUNDLE_LONG_VERSION_STRING "0.3"
MACOSX_BUNDLE_BUNDLE_NAME "i-score"
MACOSX_BUNDLE_SHORT_VERSION_STRING "0.3"
MACOSX_BUNDLE_BUNDLE_VERSION "0.3"
MACOSX_BUNDLE_COPYRIGHT "The i-score team"
MACOSX_BUNDLE_ICON_FILE "i-score.icns"
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in")
endif ()
else()
add_executable(${APPNAME} WIN32 ${SRCS})
endif()
Expand Down
40 changes: 40 additions & 0 deletions base/app/Info.plist.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
<key>CFBundleGetInfoString</key>
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
<key>CFBundleIconFile</key>
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
<key>CFBundleIdentifier</key>
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
<key>CFBundleName</key>
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSRequiresCarbon</key>
<true/>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
</dict>
</plist>
Binary file added base/lib/resources/i-score.icns
Binary file not shown.

0 comments on commit 61798d0

Please sign in to comment.