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

21 lines
548 B
CMake

spec2def(newdev.dll newdev.spec ADD_IMPORTLIB)
list(APPEND SOURCE
newdev.c
stubs.c
wizard.c
newdev_private.h
${CMAKE_CURRENT_BINARY_DIR}/newdev_stubs.c)
add_library(newdev MODULE
${SOURCE}
newdev.rc
${CMAKE_CURRENT_BINARY_DIR}/newdev.def)
set_module_type(newdev win32dll UNICODE)
target_link_libraries(newdev wine)
add_importlibs(newdev gdi32 comctl32 setupapi advapi32 user32 shell32 msvcrt kernel32 ntdll)
add_pch(newdev newdev_private.h SOURCE)
add_cd_file(TARGET newdev DESTINATION reactos/system32 FOR all)