[CMAKE]
[reactos.git] / dll / win32 / xinput9_1_0 / CMakeLists.txt
index c4fe490..78c4b62 100644 (file)
@@ -2,14 +2,15 @@
 add_definitions(-D__WINESRC__)
 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
 
-add_library(xinput9_1_0 SHARED xinput9_1_0_main.c version.rc xinput9_1_0.def)
+spec2def(xinput9_1_0.dll xinput9_1_0.spec)
 
-if(NOT MSVC)
-    set_source_files_properties(xinput9_1_0.def PROPERTIES EXTERNAL_OBJECT TRUE)
-endif()
+list(APPEND SOURCE
+    xinput9_1_0_main.c
+    version.rc
+    ${CMAKE_CURRENT_BINARY_DIR}/xinput9_1_0.def)
 
-add_importlibs(xinput9_1_0 kernel32)
+add_library(xinput9_1_0 SHARED ${SOURCE})
 
 set_module_type(xinput9_1_0 win32dll)
-
-add_cab_target(xinput9_1_0 1)
+add_importlibs(xinput9_1_0 msvcrt kernel32 xinput1_3)
+add_cd_file(TARGET xinput9_1_0 DESTINATION reactos/system32)