JPEGDEC: Add CMake files.

pull/322/head
Phil Howard 2022-06-24 11:13:03 +01:00
rodzic 7dbec2add6
commit bb2db8423e
4 zmienionych plików z 28 dodań i 0 usunięć

Wyświetl plik

@ -31,3 +31,4 @@ add_subdirectory(tufty2040)
add_subdirectory(servo2040)
add_subdirectory(motor2040)
add_subdirectory(adcfft)
add_subdirectory(jpegdec)

Wyświetl plik

@ -0,0 +1 @@
include(jpegdec.cmake)

Wyświetl plik

@ -0,0 +1,16 @@
#include "JPEGDEC.h"
/*
int32_t readRAM(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) {
return 0;
}
int32_t seekMem(JPEGFILE *pFile, int32_t iPosition) {
return 0;
}
int32_t readFile(JPEGFILE *pFile, uint8_t *pBuf, int32_t iLen) {
return 0;
}
int32_t seekFile(JPEGFILE *pFile, int32_t iPosition) {
return 0;
}
void closeFile(void *handle) {
}*/

Wyświetl plik

@ -0,0 +1,10 @@
add_library(jpegdec
${CMAKE_CURRENT_LIST_DIR}/jpeg.cpp
${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp
)
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/JPEGDEC.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=unused-function")
target_include_directories(jpegdec INTERFACE ${CMAKE_CURRENT_LIST_DIR})
target_link_libraries(jpegdec pico_stdlib)