reactos/dll/win32/msafd/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

25 lines
556 B
CMake

include_directories(
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
spec2def(msafd.dll msafd.spec)
list(APPEND SOURCE
misc/dllmain.c
misc/event.c
misc/helpers.c
misc/sndrcv.c
misc/stubs.c
msafd.h)
add_library(msafd MODULE
${SOURCE}
msafd.rc
${CMAKE_CURRENT_BINARY_DIR}/msafd.def)
set_module_type(msafd win32dll UNICODE)
target_link_libraries(msafd wine)
add_importlibs(msafd advapi32 ws2_32 msvcrt kernel32 ntdll)
add_pch(msafd msafd.h SOURCE)
add_cd_file(TARGET msafd DESTINATION reactos/system32 FOR all)