442f5a5b1323f602ee972d48594578390e6990f3
[reactos.git] / dll / directx / dinput8 / CMakeLists.txt
1
2 set_unicode()
3
4 remove_definitions(-D_WIN32_WINNT=0x502)
5 add_definitions(-D_WIN32_WINNT=0x600)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7
8 spec2def(dinput8 ${CMAKE_CURRENT_SOURCE_DIR}/dinput8.spec ${CMAKE_CURRENT_BINARY_DIR}/dinput8.def)
9
10 add_library(dinput8 SHARED
11 dinput8_main.c
12 regsvr.c
13 version.rc)
14
15 set_entrypoint(dinput8 0)
16
17 target_link_libraries(dinput8
18 ${CMAKE_CURRENT_BINARY_DIR}/dinput8.def
19 dxguid
20 uuid
21 wine)
22
23 add_importlibs(dinput8
24 user32
25 advapi32
26 ole32
27 winmm
28 dinput
29 kernel32
30 ntdll)
31
32 add_dependencies(dinput8 dinput8_def psdk buildno_header)