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