reactos/dll/cpl/input/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

31 lines
711 B
CMake

spec2def(input.dll input.spec)
list(APPEND SOURCE
input.c
input.h
input_list.c
input_list.h
layout_list.c
layout_list.h
locale_list.c
locale_list.h
settings_page.c
advanced_settings_page.c
add_dialog.c
edit_dialog.c
key_settings_dialog.c
key_sequence_dialog.c)
add_rc_deps(input.rc ${CMAKE_CURRENT_SOURCE_DIR}/resources/keyboard-shortcuts.ico)
add_library(input MODULE
${SOURCE}
input.rc
${CMAKE_CURRENT_BINARY_DIR}/input.def)
set_module_type(input win32dll UNICODE)
add_importlibs(input advapi32 user32 comctl32 gdi32 msvcrt kernel32 setupapi)
add_pch(input input.h SOURCE)
add_cd_file(TARGET input DESTINATION reactos/system32 FOR all)