[CMAKE]
[reactos.git] / dll / win32 / imm32 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 if(MSVC)
8 add_definitions(/FIwine/typeof.h)
9 endif()
10
11 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
12
13 set_rc_compiler()
14
15 spec2def(imm32.dll imm32.spec)
16
17 list(APPEND SOURCE
18 imm.c
19 version.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/imm32_stubs.c
21 ${CMAKE_CURRENT_BINARY_DIR}/imm32.def)
22
23 add_library(imm32 SHARED ${SOURCE})
24
25 set_module_type(imm32 win32dll)
26 target_link_libraries(imm32 wine)
27 add_importlibs(imm32 advapi32 user32 msvcrt kernel32 ntdll)
28 add_cd_file(TARGET imm32 DESTINATION reactos/system32)
29 add_importlib_target(imm32.spec)