-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
60 lines (55 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
cmake_minimum_required(VERSION 3.30)
project(witcher)
find_package(SDL3 REQUIRED CONFIG REQUIRED COMPONENTS SDL3-shared)
find_package(SDL3_ttf REQUIRED CONFIG REQUIRED COMPONENTS SDL3_ttf-shared)
find_package(SDL3_image REQUIRED CONFIG REQUIRED COMPONENTS SDL3_image-shared)
message("-------------------------------------------------------")
message(STATUS "SDL3 version: ${SDL3_VERSION}")
message(STATUS "SDL3_ttf version: ${SDL3_ttf_VERSION}")
message(STATUS "SDL3_image version: ${SDL3_image_VERSION}")
message("-------------------------------------------------------")
set(CMAKE_CXX_STANDARD 23)
add_library(witcher
types.h
widgets/widget/widget.cpp
widgets/widget/widget.h
widgets/widget/object.cpp
widgets/widget/object.h
widgets/button/button.cpp
widgets/button/button.h
widgets/button/action.h
layout.h
witcher.hpp
mouse_event.h
font.cpp
font.h
font_store.h
text.cpp
text.h
thema.h
helpers/draw.cpp
helpers/draw.h
window.cpp
window.h
application.cpp
application.h
sdl_event.h
sdl_event.cpp
layout.cpp
menu/menu_bar.cpp
menu/menu_bar.h
menu/menu_button.cpp
menu/menu_button.h
event/user_event.h
event/event_controller.h
menu/menu.cpp
menu/menu.h
widgets/dialog/dialog.cpp
widgets/dialog/dialog.h)
add_subdirectory(toolbox)
target_link_libraries(witcher PRIVATE
SDL3::SDL3
SDL3_image::SDL3_image
SDL3_ttf::SDL3_ttf
toolbox
)