pineapple-src/externals/vcpkg/ports/quirc/CMakeLists.txt
2022-07-23 03:01:36 +02:00

28 lines
573 B
CMake
Executable File

cmake_minimum_required(VERSION 3.19)
project(quirc C)
add_library(quirc
lib/decode.c
lib/identify.c
lib/quirc.c
lib/version_db.c
lib/quirc.h
)
target_include_directories(quirc INTERFACE $<INSTALL_INTERFACE:include>)
install(TARGETS quirc
EXPORT quirc-targets
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
install(FILES lib/quirc.h DESTINATION include)
install(EXPORT quirc-targets
FILE quirc-config.cmake
NAMESPACE quirc::
DESTINATION share/quirc
)