[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / win32 / xinput1_3 / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4 spec2def(xinput1_3.dll xinput1_3.spec ADD_IMPORTLIB)
5
6 list(APPEND SOURCE
7 xinput1_3_main.c
8 ${CMAKE_CURRENT_BINARY_DIR}/xinput1_3.def)
9
10 add_library(xinput1_3 MODULE ${SOURCE} version.rc)
11 set_module_type(xinput1_3 win32dll)
12 target_link_libraries(xinput1_3 wine)
13 add_importlibs(xinput1_3 msvcrt kernel32 ntdll)
14 add_cd_file(TARGET xinput1_3 DESTINATION reactos/system32 FOR all)