1 2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4 5remove_definitions(-D_WIN32_WINNT=0x502) 6add_definitions(-D_WIN32_WINNT=0x600) 7 8spec2def(imm32.dll imm32.spec ADD_IMPORTLIB) 9 10list(APPEND SOURCE 11 imm.c 12 ${CMAKE_CURRENT_BINARY_DIR}/imm32_stubs.c 13 ${CMAKE_CURRENT_BINARY_DIR}/imm32.def) 14 15add_library(imm32 SHARED ${SOURCE} version.rc) 16set_module_type(imm32 win32dll) 17target_link_libraries(imm32 wine) 18add_importlibs(imm32 advapi32 user32 msvcrt kernel32 ntdll) 19add_cd_file(TARGET imm32 DESTINATION reactos/system32 FOR all) 20