-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
50 lines (47 loc) · 945 Bytes
/
CMakeLists.txt
File metadata and controls
50 lines (47 loc) · 945 Bytes
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
set(GUI_SOURCE_FILES
Credits.h
Credits.cpp
Dialog.h
Dialog.cpp
Ingame.h
Ingame.cpp
Layout.h
Layout.cpp
MainMenu.h
MainMenu.cpp
MenuUtils.h
MenuUtils.cpp
NarrScreen.h
NarrScreen.cpp
UIState.h
)
set(GUI_WIDGETS_SOURCE_FILES
Widgets/Button.h
Widgets/Button.cpp
Widgets/Container.h
Widgets/Container.cpp
Widgets/LineEdit.h
Widgets/LineEdit.cpp
Widgets/StaticElement.h
Widgets/StaticElement.cpp
Widgets/Table.h
Widgets/Table.cpp
Widgets/Widget.h
)
add_library(GUI
${GUI_SOURCE_FILES}
${GUI_WIDGETS_SOURCE_FILES}
)
source_group("Source Files" FILES ${GUI_SOURCE_FILES})
source_group("Source Files\\Widgets" FILES ${GUI_WIDGETS_SOURCE_FILES})
target_include_directories(GUI PRIVATE ../)
target_link_libraries(GUI
PRIVATE ProjectOptions
PRIVATE System
PRIVATE SDL2:SDL2
# GUI includes World.h .. fix this !
# GUI doesnt use EnTT!
PRIVATE EnTT:EnTT
PRIVATE Audio
PUBLIC Common
)