xref: /reactos/sdk/lib/3rdparty/adns/CMakeLists.txt (revision ebaf247c)
1
2include_directories(
3    src
4    adns_win32)
5
6add_definitions(
7    -D_DLL -D__USE_CRTIMP
8    -DADNS_JGAA_WIN32
9    -D_CRT_NO_POSIX_ERROR_CODES)
10
11list(APPEND SOURCE
12    adns_win32/adns_unix_calls.c
13    src/check.c
14    src/event.c
15    src/general.c
16    src/parse.c
17    src/poll.c
18    src/query.c
19    src/reply.c
20    src/setup.c
21    src/transmit.c
22    src/types.c
23    src/internal.h)
24
25add_library(adns ${SOURCE})
26
27if(NOT MSVC)
28    add_target_compile_flags(adns "-Wno-unused-but-set-variable")
29endif()
30
31add_dependencies(adns psdk)
32add_pch(adns src/internal.h SOURCE)
33