File tree Expand file tree Collapse file tree 3 files changed +2183
-12
lines changed Expand file tree Collapse file tree 3 files changed +2183
-12
lines changed Original file line number Diff line number Diff line change @@ -192,30 +192,54 @@ set(TINYGL_SOURCES
192
192
external/tinygl_1b/src/ztext.c
193
193
)
194
194
195
+ add_library (
196
+ tinygl_1b
197
+ ${TINYGL_SOURCES}
198
+ )
199
+
200
+ target_include_directories (tinygl_1b
201
+ PRIVATE external/tinygl_1b/src
202
+ PUBLIC external/tinygl_1b/include
203
+ )
204
+
205
+ target_compile_options (tinygl_1b PUBLIC -Wno-unused-function
206
+ -Wno-unused-variable
207
+ -Wno-parentheses
208
+ -Wno-unused-but-set-variable )
209
+
195
210
add_executable (rpi_lcd_3d_test
196
211
src/rpi_lcd_3d_test.c
197
212
src/u8g2_ili9486_driver.c
198
213
src/gears.c
199
- ${TINYGL_SOURCES}
200
214
)
201
215
202
- target_include_directories (rpi_lcd_3d_test
203
- PRIVATE external/tinygl_1b/src external/tinygl_1b/include
204
- )
205
-
206
- target_compile_options (rpi_lcd_3d_test PRIVATE -Wno-unused-function
207
- -Wno-unused-variable
208
- -Wno-parentheses
209
- -Wno-unused-but-set-variable )
210
-
211
216
pico_generate_pio_header (rpi_lcd_3d_test ${CMAKE_CURRENT_LIST_DIR} /src/ili9486_lcd_8bit_data.pio )
212
217
213
- target_link_libraries (rpi_lcd_3d_test
218
+ target_link_libraries (rpi_lcd_3d_test PRIVATE
214
219
pico_stdlib
215
220
hardware_irq
216
221
hardware_pwm
217
222
hardware_pio
218
223
hardware_dma
219
- u8g2 )
224
+ u8g2
225
+ tinygl_1b )
220
226
221
227
pico_add_extra_outputs (rpi_lcd_3d_test )
228
+
229
+ add_executable (rpi_lcd_3d_skull_test
230
+ src/rpi_lcd_3d_skull_test.c
231
+ src/u8g2_ili9486_driver.c
232
+ )
233
+
234
+ pico_generate_pio_header (rpi_lcd_3d_skull_test ${CMAKE_CURRENT_LIST_DIR} /src/ili9486_lcd_8bit_data.pio )
235
+
236
+ target_link_libraries (rpi_lcd_3d_skull_test PRIVATE
237
+ pico_stdlib
238
+ hardware_irq
239
+ hardware_pwm
240
+ hardware_pio
241
+ hardware_dma
242
+ u8g2
243
+ tinygl_1b )
244
+
245
+ pico_add_extra_outputs (rpi_lcd_3d_skull_test )
You can’t perform that action at this time.
0 commit comments