vcpkg/ports/tinycbor/CMakeLists.txt
Alison R. Wu 0693b010a5
[TinyCBOR] Add new port (#23887)
* Add TinyCBOR port

* Avoid deprecated helpers

* Resolve post-build check problems

* Correct baseline (should have latest version, not lowest)

* Use same version-semver

* No support for older versions

* Static lib only

* Update commit hash

* Add homepage

* update hash

* Oops indents are off

Co-authored-by: Alison Wu <aliwu@microsoft.com>
2022-04-07 09:46:17 -07:00

9 lines
291 B
CMake

cmake_minimum_required(VERSION 3.20)
project(tinycbor C)
file(GLOB sources src/cbor*.c)
list(FILTER sources EXCLUDE REGEX "cbortojson.c$")
add_library(tinycbor ${sources})
install(TARGETS tinycbor)
install(FILES src/cbor.h src/cborjson.h src/tinycbor-version.h DESTINATION include)