1 2remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502) 3add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600) 4 5add_definitions(-D_ADVAPI32_) 6spec2def(advapi32_vista.dll advapi32_vista.spec ADD_IMPORTLIB) 7 8list(APPEND SOURCE 9 DllMain.c 10 RegDeleteTree.c 11 RegSetKeyValue.c 12 RegLoadMUIString.c 13 ${CMAKE_CURRENT_BINARY_DIR}/advapi32_vista.def) 14 15add_library(advapi32_vista SHARED ${SOURCE}) 16set_module_type(advapi32_vista win32dll ENTRYPOINT DllMain 12) 17target_link_libraries(advapi32_vista wine) 18add_importlibs(advapi32_vista advapi32 kernel32 ntdll) 19add_dependencies(advapi32_vista psdk) 20add_cd_file(TARGET advapi32_vista DESTINATION reactos/system32 FOR all) 21