-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (34 loc) · 1.11 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.28)
project(metal_experiment)
set(CMAKE_CXX_STANDARD 23)
add_subdirectory(external)
add_subdirectory(tests)
add_subdirectory(src_vulkan)
add_subdirectory(server)
set(SOURCES
src/perlin.h
src/perlin.cpp
src/rect.h
src/mesh.h
src/mesh.mm
src/procedural_mesh.h
src/procedural_mesh.mm
src/import/gltf.h
src/import/gltf.mm
src/import/ifc.h
src/import/ifc.mm
)
add_library(metal_experiment_lib ${SOURCES})
target_link_libraries(metal_experiment_lib PUBLIC lodepng glm fmt cgltf libjpeg-turbo ifcopenshell imgui)
target_include_directories(metal_experiment_lib PUBLIC src)
target_include_directories(metal_experiment_lib PUBLIC assets/shaders)
target_link_libraries(metal_experiment_lib PUBLIC
"-framework Cocoa"
"-framework Foundation"
"-framework AppKit"
"-framework Metal"
"-framework MetalKit"
)
target_link_libraries(imgui PUBLIC "-framework GameController")
add_executable(metal_experiment src/main.mm)
target_link_libraries(metal_experiment metal_experiment_lib)