1 2include_directories( 3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine 4 ${REACTOS_SOURCE_DIR}/win32ss/include) 5 6add_definitions(-D__WINESRC__) 7 8spec2def(imm32.dll imm32.spec ADD_IMPORTLIB) 9 10list(APPEND SOURCE 11 candidate.c 12 compstr.c 13 guideline.c 14 ime.c 15 imm.c 16 keymsg.c 17 regword.c 18 utils.c 19 win3.c 20 ${CMAKE_CURRENT_BINARY_DIR}/imm32_stubs.c 21 ${CMAKE_CURRENT_BINARY_DIR}/imm32.def) 22 23add_library(imm32 MODULE ${SOURCE} version.rc) 24set_module_type(imm32 win32dll) 25target_link_libraries(imm32 wine win32ksys) 26add_importlibs(imm32 advapi32 user32 gdi32 msvcrt kernel32 ntdll) 27add_cd_file(TARGET imm32 DESTINATION reactos/system32 FOR all) 28