mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
23373acbb9
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.
22 lines
512 B
CMake
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)
|