fab0a4da29bb03e2a7c656c39af57a4e034750bd
[reactos.git] / dll / directx / dinput / CMakeLists.txt
1
2 set_unicode()
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
8
9 spec2def(dinput.dll dinput.spec)
10
11 add_library(dinput SHARED
12 data_formats.c
13 device.c
14 dinput_main.c
15 effect_linuxinput.c
16 joystick_linux.c
17 joystick_linuxinput.c
18 keyboard.c
19 mouse.c
20 regsvr.c
21 version.rc
22 ${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
23
24 set_module_type(dinput win32dll)
25
26 target_link_libraries(dinput
27 dxguid
28 uuid
29 wine)
30
31 add_importlibs(dinput
32 user32
33 advapi32
34 ole32
35 winmm
36 msvcrt
37 kernel32
38 ntdll)
39
40 add_cd_file(TARGET dinput DESTINATION reactos/system32)
41 add_importlib_target(dinput.spec)