2020-05-06 20:45:02 +08:00
|
|
|
add_library(pm3rrg_rdv4_tinycbor STATIC
|
2020-04-16 16:57:53 +08:00
|
|
|
tinycbor/cborencoder.c
|
|
|
|
tinycbor/cborencoder_close_container_checked.c
|
|
|
|
tinycbor/cborerrorstrings.c
|
|
|
|
tinycbor/cborparser.c
|
|
|
|
tinycbor/cborparser_dup_string.c
|
|
|
|
tinycbor/cborpretty.c
|
|
|
|
tinycbor/cbortojson.c
|
|
|
|
tinycbor/cborvalidation.c
|
2020-04-18 21:09:35 +08:00
|
|
|
)
|
|
|
|
|
2020-05-06 20:45:02 +08:00
|
|
|
target_include_directories(pm3rrg_rdv4_tinycbor INTERFACE tinycbor)
|
2020-04-19 01:39:55 +08:00
|
|
|
# Strange errors on Mingw when compiling with -O3
|
2023-06-26 19:10:45 +08:00
|
|
|
target_compile_options(pm3rrg_rdv4_tinycbor PRIVATE -Wall -Werror -O2)
|
2020-05-06 20:45:02 +08:00
|
|
|
set_property(TARGET pm3rrg_rdv4_tinycbor PROPERTY POSITION_INDEPENDENT_CODE ON)
|