first commit
This commit is contained in:
23
rendering_api/metal/depends/metal-cpp/CMakeLists.txt
Normal file
23
rendering_api/metal/depends/metal-cpp/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
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"
|
||||
)
|
Reference in New Issue
Block a user