1function(lsqpack_add_executable TARGET)
2    add_executable(${TARGET} "")
3    target_link_libraries(${TARGET} PRIVATE ls-qpack)
4
5    target_sources(${TARGET} PRIVATE ${TARGET}.c ../deps/xxhash/xxhash.c)
6    target_include_directories(${TARGET} PRIVATE ../deps/xxhash)
7
8    if(MSVC)
9        target_include_directories(${TARGET} PRIVATE ../wincompat)
10        target_link_libraries(${TARGET} PRIVATE ${GETOPT_LIB})
11    else()
12        target_link_libraries(${TARGET} PRIVATE m)
13    endif()
14endfunction()
15
16lsqpack_add_executable(interop-encode)
17lsqpack_add_executable(interop-decode)
18lsqpack_add_executable(encode-int)
19lsqpack_add_executable(fuzz-decode)
20
21target_include_directories(interop-decode PRIVATE ../test)
22