-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (29 loc) · 892 Bytes
/
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
cmake_minimum_required(VERSION 3.27)
project(TicTacToe VERSION 0.0.1)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "-Wall -fsanitize=address")
add_executable(TicTacToe
src/main.cpp
src/app_delegate.cpp
src/view_delegate.cpp
src/renderer.cpp
src/game_controller.m
src/keys_code.mm
src/utility.cpp
src/math.cpp
)
set(PLIST_FILE "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
set_target_properties(TicTacToe PROPERTIES MACOSX_BUNDLE_INFO_PLIST "${PLIST_FILE}")
target_include_directories(TicTacToe PRIVATE dependencies/include/metal-cpp)
target_include_directories(TicTacToe PRIVATE dependencies/include/metal-cpp-extensions)
target_link_libraries(TicTacToe
"-framework Metal"
"-framework Foundation"
"-framework Cocoa"
"-framework CoreGraphics"
"-framework MetalKit"
"-framework QuartzCore"
"-framework GameController"
)