forked from tuupola/hagl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
26 lines (22 loc) · 849 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
23
24
25
26
if (ESP_PLATFORM)
idf_component_register(
SRCS "src/bitmap.c" "src/clip.c" "src/fontx.c" "src/hagl.c" "src/hsl.c" "src/rgb565.c" "src/rgb888.c" "src/tjpgd.c"
INCLUDE_DIRS "./include"
REQUIRES hagl_esp_mipi
)
endif()
if (PICO_SDK)
add_library(hagl INTERFACE)
target_sources(hagl INTERFACE
${CMAKE_CURRENT_LIST_DIR}/src/bitmap.c
${CMAKE_CURRENT_LIST_DIR}/src/clip.c
${CMAKE_CURRENT_LIST_DIR}/src/fontx.c
${CMAKE_CURRENT_LIST_DIR}/src/hagl.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()