mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +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.
24 lines
556 B
CMake
24 lines
556 B
CMake
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/drivers)
|
|
|
|
spec2def(msafd.dll msafd.spec)
|
|
|
|
list(APPEND SOURCE
|
|
misc/dllmain.c
|
|
misc/event.c
|
|
misc/helpers.c
|
|
misc/sndrcv.c
|
|
misc/stubs.c
|
|
msafd.h)
|
|
|
|
add_library(msafd MODULE
|
|
${SOURCE}
|
|
msafd.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/msafd.def)
|
|
|
|
set_module_type(msafd win32dll UNICODE)
|
|
target_link_libraries(msafd wine)
|
|
add_importlibs(msafd advapi32 ws2_32 msvcrt kernel32 ntdll)
|
|
add_pch(msafd msafd.h SOURCE)
|
|
add_cd_file(TARGET msafd DESTINATION reactos/system32 FOR all)
|