1 2remove_definitions(-D_WIN32_WINNT=0x502) 3add_definitions(-D_WIN32_WINNT=0x600) 4 5add_definitions(-D__WINESRC__) 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(pdh.dll pdh.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 pdh_main.c 11 ${CMAKE_CURRENT_BINARY_DIR}/pdh_stubs.c 12 ${CMAKE_CURRENT_BINARY_DIR}/pdh.def) 13 14add_library(pdh MODULE ${SOURCE}) 15set_module_type(pdh win32dll) 16target_link_libraries(pdh wine) 17add_importlibs(pdh msvcrt kernel32_vista kernel32 ntdll) 18add_cd_file(TARGET pdh DESTINATION reactos/system32 FOR all) 19