reactos/dll/np/nfs/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

24 lines
563 B
CMake

spec2def(nfs41_np.dll nfs41_np.spec ADD_IMPORTLIB)
list(APPEND SOURCE
dllmain.c
nfs41_np.c
nfs41_np.h
options.c
options.h
precomp.h)
include_directories(
${REACTOS_SOURCE_DIR}/drivers/filesystems/nfs)
add_library(nfs41_np MODULE
${SOURCE}
nfsnp.rc
${CMAKE_CURRENT_BINARY_DIR}/nfs41_np.def)
set_module_type(nfs41_np win32dll UNICODE)
target_link_libraries(nfs41_np ${PSEH_LIB})
add_importlibs(nfs41_np msvcrt kernel32)
add_pch(nfs41_np precomp.h SOURCE)
add_cd_file(TARGET nfs41_np DESTINATION reactos/system32 FOR all)