xref: /reactos/dll/directx/wine/dinput/CMakeLists.txt (revision 41c8c312)
1c2c66affSColin Finck
2*41c8c312SAmine Khaldiadd_definitions(-D__WINESRC__ -DDIRECTINPUT_VERSION=0x0700)
3c2c66affSColin Finckinclude_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4c2c66affSColin Finckspec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
5c2c66affSColin Finck
6c2c66affSColin Fincklist(APPEND SOURCE
7c2c66affSColin Finck    config.c
8c2c66affSColin Finck    device.c
9c2c66affSColin Finck    dinput_main.c
10c2c66affSColin Finck    effect_linuxinput.c
11c2c66affSColin Finck    joystick.c
12c2c66affSColin Finck    joystick_linux.c
13c2c66affSColin Finck    joystick_linuxinput.c
14c2c66affSColin Finck    joystick_osx.c
15c2c66affSColin Finck    keyboard.c
16c2c66affSColin Finck    mouse.c
177016dd6dSAmine Khaldi    precomp.h)
18c2c66affSColin Finck
1923373acbSJérôme Gardouadd_library(dinput MODULE
20c2c66affSColin Finck    ${SOURCE}
21c2c66affSColin Finck    data_formats.c
22c2c66affSColin Finck    dinput.rc
2398e62237SAmine Khaldi    version.rc
24c2c66affSColin Finck    ${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
25c2c66affSColin Finck
26c2c66affSColin Finckadd_library(dinput_data_formats data_formats.c)
27c2c66affSColin Finckadd_dependencies(dinput_data_formats psdk)
28c2c66affSColin Finckset_module_type(dinput win32dll)
29c2c66affSColin Fincktarget_link_libraries(dinput dxguid uuid wine)
30c2c66affSColin Finckadd_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
317016dd6dSAmine Khaldiadd_pch(dinput precomp.h SOURCE)
32c2c66affSColin Finckadd_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)
33