-
Notifications
You must be signed in to change notification settings - Fork 49
/
CMakeLists.txt
63 lines (56 loc) · 2.03 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
61
62
63
if (ESP_PLATFORM)
idf_component_register(
SRCS
"src/hagl.c"
"src/hagl_blit.c"
"src/hagl_char.c"
"src/hagl_circle.c"
"src/hagl_clip.c"
"src/hagl_color.c"
"src/hagl_ellipse.c"
"src/hagl_hline.c"
"src/hagl_image.c"
"src/hagl_line.c"
"src/hagl_pixel.c"
"src/hagl_polygon.c"
"src/hagl_rectangle.c"
"src/hagl_triangle.c"
"src/hagl_vline.c"
"src/hagl_bitmap.c"
"src/fontx.c"
"src/hsl.c"
"src/rgb565.c"
"src/rgb888.c"
"src/tjpgd.c"
INCLUDE_DIRS "./include"
REQUIRES hagl_hal
)
add_definitions("-DHAGL_INCLUDE_SDKCONFIG_H")
else()
add_library(hagl INTERFACE)
target_sources(hagl INTERFACE
${CMAKE_CURRENT_LIST_DIR}/src/hagl.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_blit.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_char.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_circle.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_clip.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_color.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_ellipse.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_hline.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_image.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_line.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_pixel.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_polygon.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_rectangle.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_triangle.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_vline.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl_bitmap.c
${CMAKE_CURRENT_LIST_DIR}/src/fontx.c
${CMAKE_CURRENT_LIST_DIR}/src/hsl.c
${CMAKE_CURRENT_LIST_DIR}/src/rgb565.c
${CMAKE_CURRENT_LIST_DIR}/src/rgb888.c
${CMAKE_CURRENT_LIST_DIR}/src/tjpgd.c
)
target_include_directories(hagl INTERFACE ${CMAKE_CURRENT_LIST_DIR}/include)
target_link_libraries(hagl INTERFACE hagl_hal)
endif()