pimoroni-pico/libraries/jpegdec/jpegdec.cmake

10 lines
341 B
CMake
Raw Normal View History

2022-06-24 11:13:03 +01:00
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)