1FILE(GLOB app_sources src/*.c) 2FILE(GLOB app_sources_cpp src/*.cpp) 3target_sources(app PRIVATE 4 ${app_sources} ${app_sources_cpp} 5 ) 6 7if (VERBOSE) 8 zephyr_compile_definitions(ZCBOR_VERBOSE) 9endif() 10 11if (ASSERTS) 12 zephyr_compile_definitions(ZCBOR_ASSERTS) 13endif() 14 15if (CANONICAL) 16 zephyr_compile_definitions(ZCBOR_CANONICAL) 17endif() 18 19if (CONFIG_BIG_ENDIAN OR BIG_ENDIAN) 20 zephyr_compile_definitions(ZCBOR_BIG_ENDIAN) 21endif() 22 23if (MAP_SMART_SEARCH) 24 zephyr_compile_definitions(ZCBOR_MAP_SMART_SEARCH) 25endif() 26 27zephyr_compile_options(-Werror) 28 29if (CONFIG_64BIT) 30 set(bit_arg -b 64) 31endif() 32