mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
compile metal in cmake
This commit is contained in:
@ -3,7 +3,14 @@ add_executable(Voxelotl MACOSX_BUNDLE
|
||||
Renderer.swift
|
||||
FPSCalculator.swift
|
||||
Application.swift
|
||||
main.swift)
|
||||
main.swift
|
||||
shader.metal)
|
||||
|
||||
set_source_files_properties(
|
||||
shader.metal PROPERTIES
|
||||
LANGUAGE METAL
|
||||
COMPILE_OPTIONS "-I${PROJECT_SOURCE_DIR}"
|
||||
)
|
||||
|
||||
target_link_libraries(Voxelotl PRIVATE SDLSwift)
|
||||
set_target_properties(Voxelotl PROPERTIES
|
||||
@ -28,4 +35,4 @@ set_target_properties(Voxelotl PROPERTIES
|
||||
set_source_files_properties(Assets.xcassets PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
||||
source_group("Resources" FILES Assets.xcassets)
|
||||
|
||||
source_group("Source Files" REGULAR_EXPRESSION "\\.(swift)$")
|
||||
source_group("Source Files" REGULAR_EXPRESSION "\\.(swift|metal)$")
|
||||
|
Reference in New Issue
Block a user