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