mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-02 21:00:57 +00:00
70 lines
2.1 KiB
CMake
70 lines
2.1 KiB
CMake
add_executable(Voxelotl MACOSX_BUNDLE
|
|
Assets.xcassets
|
|
|
|
test.png
|
|
|
|
shadertypes.h
|
|
shader.metal
|
|
|
|
FloatExtensions.swift
|
|
Matrix4x4.swift
|
|
Rectangle.swift
|
|
AABB.swift
|
|
Color.swift
|
|
|
|
Random/RandomProvider.swift
|
|
Random/RandomRange.swift
|
|
Random/Arc4Random.swift
|
|
Random/DarwinRandom.swift
|
|
|
|
NSImageLoader.swift
|
|
Renderer.swift
|
|
GameController.swift
|
|
FPSCalculator.swift
|
|
|
|
Chunk.swift
|
|
Camera.swift
|
|
Player.swift
|
|
GameDelegate.swift
|
|
Application.swift
|
|
|
|
Game.swift
|
|
|
|
main.swift)
|
|
|
|
set_source_files_properties(
|
|
shader.metal PROPERTIES
|
|
LANGUAGE METAL
|
|
COMPILE_OPTIONS "-I${PROJECT_SOURCE_DIR}"
|
|
)
|
|
|
|
target_include_directories(Voxelotl PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
target_link_libraries(Voxelotl PRIVATE SDLSwift)
|
|
set_target_properties(Voxelotl PROPERTIES
|
|
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME YES
|
|
XCODE_ATTRIBUTE_PRODUCT_BUNDLE_IDENTIFIER "gay.pizza.voxelotl"
|
|
XCODE_EMBED_FRAMEWORKS "${SDL3}"
|
|
XCODE_EMBED_FRAMEWORKS_REMOVE_HEADERS_ON_COPY YES
|
|
XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY YES
|
|
MACOSX_BUNDLE_BUNDLE_NAME "Voxelotl"
|
|
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
|
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
|
|
MACOSX_BUNDLE_GUI_IDENTIFIER "gay.pizza.voxelotl"
|
|
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in"
|
|
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon"
|
|
BUILD_RPATH "@loader_path/../Frameworks"
|
|
XCODE_ATTRIBUTE_SKIP_INSTALL "NO"
|
|
XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)"
|
|
XCODE_GENERATE_SCHEME ON
|
|
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(Assets.xcassets PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
|
set_source_files_properties(module.modulemap PROPERTIES MACOSX_PACKAGE_LOCATION Modules)
|
|
set_source_files_properties(test.png PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
|
|
|
source_group("Resources" FILES Assets.xcassets test.png)
|
|
source_group("Source Files" REGULAR_EXPRESSION "\\.(swift|metal)$")
|
|
source_group("Source Files\\Random" REGULAR_EXPRESSION "Random/")
|