blob: eeda9305c53f2e8847fa9770cd72789c87bd7a5b (
plain)
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
|
cmake_minimum_required(VERSION 3.0)
project(ui)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED On)
set(CMAKE_C_EXTENSIONS Off)
add_subdirectory(font)
add_subdirectory(fontbaker)
add_library(ui
src/event.c
src/input.c
src/layout.c
src/render.c
src/ui.c
src/uiLibrary.c
src/uiLibrary.h
src/widget/button.c
src/widget/frame.c
src/widget/label.c
src/widget/table.c
src/widget/widget.c
src/widget/widget.h)
target_include_directories(ui PUBLIC
include)
target_include_directories(ui PRIVATE
src)
target_link_libraries(ui PUBLIC
cassert
cstring
font
list)
target_compile_options(ui PRIVATE -Wall -Wextra -Wpedantic)
|