reactos/drivers/network/afd/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

28 lines
613 B
CMake

include_directories(
BEFORE include
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
list(APPEND SOURCE
afd/bind.c
afd/connect.c
afd/context.c
afd/info.c
afd/listen.c
afd/lock.c
afd/main.c
afd/read.c
afd/select.c
afd/tdi.c
afd/tdiconn.c
afd/write.c
include/afd.h)
add_library(afd MODULE ${SOURCE} afd.rc)
target_link_libraries(afd ${PSEH_LIB})
set_module_type(afd kernelmodedriver)
add_importlibs(afd ntoskrnl hal)
add_pch(afd include/afd.h SOURCE)
add_cd_file(TARGET afd DESTINATION reactos/system32/drivers FOR all)
add_registry_inf(afd_reg.inf)