CMakeLists.txt

 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
if(TARGET felspar-check)


    add_library(felspar-io-headers-tests STATIC EXCLUDE_FROM_ALL
            accept.cpp
            completion.cpp
            connect.cpp
            error.cpp
            exceptions.cpp
            io.cpp
            posix.cpp
            read.cpp
            tls.cpp
            warden.cpp
            warden.poll.cpp
            write.cpp
        )
    if(${FELSPAR_ENABLE_IO_URING})
        target_sources(felspar-io-headers-tests PRIVATE
                warden.uring.cpp
            )
    endif()
    target_link_libraries(felspar-io-headers-tests felspar-io)
    add_dependencies(felspar-check felspar-io-headers-tests)


endif()