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

22 lines
532 B
CMake

spec2def(wlnotify.dll wlnotify.spec ADD_IMPORTLIB)
list(APPEND SOURCE
scard.c
schedsvc.c
senssvc.c
termserv.c
wlballoon.c
wlnotify.c
precomp.h)
add_library(wlnotify MODULE
${SOURCE}
wlnotify.rc
${CMAKE_CURRENT_BINARY_DIR}/wlnotify.def)
set_module_type(wlnotify win32dll UNICODE ENTRYPOINT DllMain 12)
target_link_libraries(wlnotify wine)
add_importlibs(wlnotify advapi32 kernel32 ntdll)
add_pch(wlnotify precomp.h SOURCE)
add_cd_file(TARGET wlnotify DESTINATION reactos/system32 FOR all)