pimoroni-pico/libraries/jpegdec/jpegdec.cmake

10 wiersze
341 B
CMake

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)