7a626fc6540659d1328b7a8228b643fd5d925ab1
[reactos.git] / reactos / dll / directx / dinput / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(-D__WINESRC__)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
9
10 add_library(dinput SHARED
11 config.c
12 data_formats.c
13 device.c
14 dinput_main.c
15 effect_linuxinput.c
16 joystick.c
17 joystick_linux.c
18 joystick_linuxinput.c
19 joystick_osx.c
20 keyboard.c
21 mouse.c
22 dinput.rc
23 ${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
24
25 add_library(dinput_data_formats data_formats.c)
26 add_dependencies(dinput_data_formats psdk)
27 set_module_type(dinput win32dll UNICODE)
28 target_link_libraries(dinput dxguid uuid wine)
29 add_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
30 add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)