-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
22 lines (16 loc) · 896 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
cmake_minimum_required(VERSION 3.24)
project(Symphonia)
set(CMAKE_CXX_STANDARD 20)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_ttf REQUIRED)
find_package(SDL2_mixer REQUIRED)
INCLUDE_DIRECTORIES(${SDL2_INCLUDE_DIRS})
set(SDL2_LIBRARIES /opt/homebrew/lib/libSDL2.dylib)
set(SDL2_IMAGE_LIBRARIES /opt/homebrew/lib/libSDL2_image.dylib)
set(SDL2_TTF_LIBRARIES /opt/homebrew/lib/libSDL2_ttf.dylib)
set(SDL2_MIXER_LIBRARIES /opt/homebrew/lib/libSDL2_mixer.dylib)
set(SDL2_ALL ${SDL2_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${SDL2_TTF_LIBRARIES} ${SDL2_MIXER_LIBRARIES})
add_subdirectory("tests")
add_executable(Symphonia src/main.cpp lib/Game.cpp lib/Game.h lib/Screen.h src/screens/TitleScreen.cpp src/screens/TitleScreen.h lib/ui/Node.cpp lib/ui/Node.h lib/ui/Text.cpp lib/ui/Text.h lib/ui/Button.cpp lib/ui/Button.h)
target_link_libraries(Symphonia ${SDL2_ALL})