+if(MSVC_IDE)
+ # msi_winetest.rc: let rc.exe find custom.dll in its subdirectory, i.e. Debug.
+ include_directories($<TARGET_FILE_DIR:custom>)
+endif()
+
+spec2def(custom.dll custom.spec)
+add_library(custom SHARED custom.c ${CMAKE_CURRENT_BINARY_DIR}/custom.def)
+target_link_libraries(custom uuid)
+set_module_type(custom win32dll)
+add_importlibs(custom msi ole32 msvcrt kernel32)
+