reactos/win32ss/printing/processors/winprint/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

19 lines
472 B
CMake

spec2def(winprint.dll winprint.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
raw.c
precomp.h)
add_library(winprint MODULE
${SOURCE}
winprint.rc
${CMAKE_CURRENT_BINARY_DIR}/winprint.def)
set_module_type(winprint win32dll UNICODE)
target_link_libraries(winprint wine)
add_importlibs(winprint spoolss msvcrt kernel32 ntdll)
add_pch(winprint precomp.h SOURCE)
add_cd_file(TARGET winprint DESTINATION reactos/system32/spool/prtprocs/w32x86 FOR all)