reactos/dll/win32/dnsapi/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

30 lines
756 B
CMake

include_directories(
include
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/src
${REACTOS_SOURCE_DIR}/sdk/lib/3rdparty/adns/adns_win32)
add_definitions(-DADNS_JGAA_WIN32)
spec2def(dnsapi.dll dnsapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dnsapi/adns.c
dnsapi/context.c
dnsapi/memory.c
dnsapi/names.c
dnsapi/query.c
dnsapi/record.c
dnsapi/stubs.c
dnsapi/precomp.h)
add_library(dnsapi MODULE
${SOURCE}
dnsapi.rc
${CMAKE_CURRENT_BINARY_DIR}/dnsapi.def)
set_module_type(dnsapi win32dll)
target_link_libraries(dnsapi adns)
add_importlibs(dnsapi advapi32 user32 ws2_32 iphlpapi msvcrt kernel32 ntdll)
add_pch(dnsapi dnsapi/precomp.h SOURCE)
add_cd_file(TARGET dnsapi DESTINATION reactos/system32 FOR all)