reactos/dll/cpl/mmsys/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
573 B
CMake

spec2def(mmsys.cpl mmsys.spec)
list(APPEND SOURCE
mmsys.c
sounds.c
speakervolume.c
volume.c
audio.c
voice.c
mmsys.h)
file(GLOB mmsys_rc_deps resources/*.*)
add_rc_deps(mmsys.rc ${mmsys_rc_deps})
add_library(mmsys MODULE
${SOURCE}
mmsys.rc
${CMAKE_CURRENT_BINARY_DIR}/mmsys.def)
set_module_type(mmsys cpl UNICODE)
add_importlibs(mmsys user32 comctl32 devmgr gdi32 winmm advapi32 shell32 setupapi shlwapi comdlg32 msvcrt kernel32 ntdll)
add_pch(mmsys mmsys.h SOURCE)
add_cd_file(TARGET mmsys DESTINATION reactos/system32 FOR all)