reactos/dll/cpl/access/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
523 B
CMake

spec2def(access.cpl access.spec)
list(APPEND SOURCE
access.c
display.c
general.c
keyboard.c
mouse.c
sound.c
access.h)
add_rc_deps(access.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/applet.ico)
add_library(access MODULE
${SOURCE}
access.rc
${CMAKE_CURRENT_BINARY_DIR}/access.def)
set_module_type(access cpl UNICODE)
add_importlibs(access user32 gdi32 advapi32 comctl32 msvcrt kernel32)
add_pch(access access.h SOURCE)
add_cd_file(TARGET access DESTINATION reactos/system32 FOR all)