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