reactos/dll/win32/fmifs/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

25 lines
559 B
CMake

spec2def(fmifs.dll fmifs.spec ADD_IMPORTLIB)
list(APPEND SOURCE
chkdsk.c
compress.c
diskcopy.c
extend.c
format.c
init.c
media.c
query.c
precomp.h)
add_library(fmifs MODULE
${SOURCE}
fmifs.rc
${CMAKE_CURRENT_BINARY_DIR}/fmifs_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/fmifs.def)
set_module_type(fmifs win32dll UNICODE ENTRYPOINT InitializeFmIfs 12)
add_importlibs(fmifs kernel32 ntdll)
add_pch(fmifs precomp.h SOURCE)
add_dependencies(fmifs psdk)
add_cd_file(TARGET fmifs DESTINATION reactos/system32 FOR all)