Skip to content

Commit

Permalink
COMP: Set Slicer_MACOSX_BUNDLE_GUI_IDENTIFIER
Browse files Browse the repository at this point in the history
Fixes #27
  • Loading branch information
jcfr committed Nov 13, 2020
1 parent 01ba42a commit bdcb062
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"org_domain" : "kitware.com",
"org_name" : "Kitware, Inc.",
"app_name" : "{{ cookiecutter.project_name }}",
"bundle_identifier" : "{{ cookiecutter.org_domain.split('.') | reverse | join('.') }}.{{ cookiecutter.project_name | lower }}",
"app_version_major": "0",
"app_version_minor": "1",
"app_version_patch": "0",
Expand Down
5 changes: 5 additions & 0 deletions {{cookiecutter.project_name}}/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ endif()
include(SlicerInitializeBuildType)
include(SlicerInitializeReleaseType)

# Set application bundle identifier for macOS
if(APPLE)
set(Slicer_MACOSX_BUNDLE_GUI_IDENTIFIER "{{cookiecutter.bundle_identifier}}")
endif()

# Installation folder and admin account requirement for Windows
if(WIN32)
# Note: To avoid escaping issue, make sure to use forward slash when setting
Expand Down

0 comments on commit bdcb062

Please sign in to comment.