13674d7b4SDaan De Meyerfunction(lsqpack_add_executable TARGET) 23674d7b4SDaan De Meyer add_executable(${TARGET} "") 3ee202b72SDmitri Tikhonov target_link_libraries(${TARGET} PRIVATE ls-qpack) 4387f7481SDmitri Tikhonov 560620859SDmitri Tikhonov target_sources(${TARGET} PRIVATE ${TARGET}.c ../deps/xxhash/xxhash.c) 660620859SDmitri Tikhonov target_include_directories(${TARGET} PRIVATE ../deps/xxhash) 7205a2804SDmitri Tikhonov 83674d7b4SDaan De Meyer if(MSVC) 93674d7b4SDaan De Meyer target_include_directories(${TARGET} PRIVATE ../wincompat) 10948d3c75STyler Young target_link_libraries(${TARGET} PRIVATE ${GETOPT_LIB}) 11ee202b72SDmitri Tikhonov else() 12ee202b72SDmitri Tikhonov target_link_libraries(${TARGET} PRIVATE m) 133674d7b4SDaan De Meyer endif() 143674d7b4SDaan De Meyerendfunction() 153674d7b4SDaan De Meyer 163674d7b4SDaan De Meyerlsqpack_add_executable(interop-encode) 173674d7b4SDaan De Meyerlsqpack_add_executable(interop-decode) 183674d7b4SDaan De Meyerlsqpack_add_executable(encode-int) 19c5459769SDmitri Tikhonovlsqpack_add_executable(fuzz-decode) 20439cd37dSDmitri Tikhonov 21439cd37dSDmitri Tikhonovtarget_include_directories(interop-decode PRIVATE ../test) 22