24 lines
651 B
CMake
24 lines
651 B
CMake
set (CMAKE_CXX_STANDARD 20)
|
|
|
|
# Library definition
|
|
add_library(METAL_CPP
|
|
${CMAKE_CURRENT_SOURCE_DIR}/definition.cpp
|
|
)
|
|
|
|
# Metal cpp headers
|
|
target_include_directories(METAL_CPP PUBLIC
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/metal-cpp/"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/metal-cpp-extensions/"
|
|
)
|
|
|
|
target_include_directories(METAL_CPP PRIVATE ${CMAKE_SOURCE_DIR}/gryphn/rendering_api/metal/depends/metal-cpp/)
|
|
|
|
# Metal cpp library (linker)
|
|
target_link_libraries(METAL_CPP
|
|
"-framework Metal"
|
|
"-framework MetalKit"
|
|
"-framework AppKit"
|
|
"-framework Foundation"
|
|
"-framework QuartzCore"
|
|
)
|