diff --git a/Sources/Voxelotl/CMakeLists.txt b/Sources/Voxelotl/CMakeLists.txt index 534ce14..d5f4521 100644 --- a/Sources/Voxelotl/CMakeLists.txt +++ b/Sources/Voxelotl/CMakeLists.txt @@ -1,4 +1,5 @@ add_executable(Voxelotl MACOSX_BUNDLE + Voxelotl.icns Application.swift main.swift) @@ -13,6 +14,7 @@ set_target_properties(Voxelotl PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}" MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}" MACOSX_BUNDLE_GUI_IDENTIFIER "gay.pizza.voxelotl" + MACOSX_BUNDLE_ICON_FILE "Voxelotl.icns" MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in" BUILD_RPATH "@loader_path/../Frameworks" XCODE_ATTRIBUTE_SKIP_INSTALL "NO" @@ -21,3 +23,7 @@ set_target_properties(Voxelotl PROPERTIES XCODE_SCHEME_ENABLE_GPU_FRAME_CAPTURE_MODE "Metal" XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS "${CMAKE_CURRENT_SOURCE_DIR}/Voxelotl.entitlements" MACOSX_BUNDLE_COPYRIGHT "© 2024 Gay Pizza Specifications") +set_source_files_properties(Voxelotl.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources") +source_group("Resources" FILES Voxelotl.icns) + +source_group("Source Files" REGULAR_EXPRESSION "\\.(swift)$") diff --git a/Sources/Voxelotl/Voxelotl.entitlements b/Sources/Voxelotl/Voxelotl.entitlements index 852fa1a..8e790e7 100644 --- a/Sources/Voxelotl/Voxelotl.entitlements +++ b/Sources/Voxelotl/Voxelotl.entitlements @@ -4,5 +4,7 @@ com.apple.security.app-sandbox + com.apple.security.cs.disable-library-validation + diff --git a/Sources/Voxelotl/Voxelotl.icns b/Sources/Voxelotl/Voxelotl.icns new file mode 100644 index 0000000..82551c6 Binary files /dev/null and b/Sources/Voxelotl/Voxelotl.icns differ