1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 4spec2def(dinput8.dll dinput8.spec ADD_IMPORTLIB) 5 6list(APPEND SOURCE 7 dinput8_main.c 8 ${CMAKE_CURRENT_BINARY_DIR}/dinput8.def) 9 10add_library(dinput8 SHARED ${SOURCE} version.rc) 11set_module_type(dinput8 win32dll) 12target_link_libraries(dinput8 dxguid uuid wine) 13add_importlibs(dinput8 ole32 msvcrt kernel32 ntdll) 14add_cd_file(TARGET dinput8 DESTINATION reactos/system32 FOR all) 15