mirror of
https://github.com/reactos/reactos.git
synced 2024-11-03 13:25:57 +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.
25 lines
559 B
CMake
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)
|