diff --git a/cookiecutter.json b/cookiecutter.json index 4994bb6..54a4e9c 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -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", diff --git a/{{cookiecutter.project_name}}/CMakeLists.txt b/{{cookiecutter.project_name}}/CMakeLists.txt index fa6e2dd..8ad7aa4 100644 --- a/{{cookiecutter.project_name}}/CMakeLists.txt +++ b/{{cookiecutter.project_name}}/CMakeLists.txt @@ -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