File: CMakeLists.txt

package info (click to toggle)
libcbor 0.10.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: ansic: 8,540; makefile: 157; cpp: 101; python: 90; sh: 81; ruby: 6
file content (28 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
add_executable(readfile readfile.c)
target_link_libraries(readfile cbor)

add_executable(create_items create_items.c)
target_link_libraries(create_items cbor)

add_executable(streaming_parser streaming_parser.c)
target_link_libraries(streaming_parser cbor)

add_executable(streaming_array streaming_array.c)
target_link_libraries(streaming_array cbor)

add_executable(sort sort.c)
target_link_libraries(sort cbor)

add_executable(hello hello.c)
target_link_libraries(hello cbor)

find_package(CJSON)

if(CJSON_FOUND)
    add_executable(cjson2cbor cjson2cbor.c)
    target_include_directories(cjson2cbor PUBLIC ${CJSON_INCLUDE_DIRS})
    target_link_libraries(cjson2cbor cbor ${CJSON_LIBRARY})
endif()

file(COPY data DESTINATION .)