mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 23:28:58 +00:00
33 lines
836 B
CMake
33 lines
836 B
CMake
|
|
add_definitions(-D__WINESRC__)
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
|
|
spec2def(dinput.dll dinput.spec ADD_IMPORTLIB)
|
|
|
|
list(APPEND SOURCE
|
|
config.c
|
|
device.c
|
|
dinput_main.c
|
|
effect_linuxinput.c
|
|
joystick.c
|
|
joystick_linux.c
|
|
joystick_linuxinput.c
|
|
joystick_osx.c
|
|
keyboard.c
|
|
mouse.c
|
|
precomp.h)
|
|
|
|
add_library(dinput SHARED
|
|
${SOURCE}
|
|
data_formats.c
|
|
dinput.rc
|
|
version.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/dinput.def)
|
|
|
|
add_library(dinput_data_formats data_formats.c)
|
|
add_dependencies(dinput_data_formats psdk)
|
|
set_module_type(dinput win32dll)
|
|
target_link_libraries(dinput dxguid uuid wine)
|
|
add_importlibs(dinput comctl32 ole32 user32 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(dinput precomp.h SOURCE)
|
|
add_cd_file(TARGET dinput DESTINATION reactos/system32 FOR all)
|