[CMAKE] Use modules instead of shared libraries
[reactos.git] / dll / apisets / CMakeLists.txt.in
index 2399d21..1a12f9e 100644 (file)
@@ -17,7 +17,7 @@ function (add_apiset apiset_name baseaddress)
         -D_WCTYPE_DEFINED
         -D_CRT_ERRNO_DEFINED)
 
-    add_library(${apiset_name} SHARED
+    add_library(${apiset_name} MODULE
         ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}_stubs.c
         ${CMAKE_CURRENT_BINARY_DIR}/${apiset_name}.def)
 
@@ -30,10 +30,12 @@ function (add_apiset apiset_name baseaddress)
         add_target_compile_flags(${apiset_name} "/wd4026 /wd4273")
     endif()
 
-    add_importlibs(${apiset_name} ${ARGN} kernel32 ntdll)
+    add_importlibs(${apiset_name} ${ARGN} ntdll)
 
-    add_cd_file(TARGET ${apiset_name} DESTINATION reactos/system32 FOR all)
+    add_cd_file(TARGET ${apiset_name} DESTINATION reactos/winsxs/x86_reactos.apisets_6595b64144ccf1df_1.0.0.0_none_deadbeef FOR all)
 endfunction()
 
+add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/x86_reactos.apisets_6595b64144ccf1df_1.0.0.0_none_deadbeef.manifest DESTINATION reactos/winsxs/manifests FOR all)
+
 # Apisets will be appended