reactos/win32ss/printing/monitors/localmon/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
512 B
CMake

add_subdirectory(ui)
spec2def(localmon.dll localmon.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
ports.c
precomp.h
tools.c
xcv.c)
add_library(localmon MODULE
${SOURCE}
localmon.rc
${CMAKE_CURRENT_BINARY_DIR}/localmon.def)
set_module_type(localmon win32dll UNICODE)
target_link_libraries(localmon wine)
add_importlibs(localmon advapi32 spoolss user32 msvcrt kernel32 ntdll)
add_pch(localmon precomp.h SOURCE)
add_cd_file(TARGET localmon DESTINATION reactos/system32 FOR all)