File: CMakeLists.txt

package info (click to toggle)
tinycbor 7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 856 kB
  • sloc: ansic: 3,968; cpp: 3,494; perl: 156; sh: 44; makefile: 26
file content (20 lines) | stat: -rw-r--r-- 440 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: MIT
include(TinyCBORHelpers)
add_subdirectory(c90)

if(WITH_FREESTANDING OR NOT WITH_FLOATING_POINT)
  return()
endif()

find_package(Qt6 COMPONENTS Core Test)
if(Qt6_FOUND)
  set(CMAKE_CXX_STANDARD 20)
  set(CMAKE_AUTOMOC ON)
  add_subdirectory(cpp)
  add_subdirectory(encoder)
  add_subdirectory(parser)
  if(WITH_CBOR2JSON)
    add_subdirectory(tojson)
  endif()
endif()