1 2add_definitions(-D__WINESRC__) 3include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) 4 5remove_definitions(-D_WIN32_WINNT=0x502) 6add_definitions(-D_WIN32_WINNT=0x600) 7 8spec2def(snmpapi ${CMAKE_CURRENT_SOURCE_DIR}/snmpapi.spec ${CMAKE_CURRENT_BINARY_DIR}/snmpapi.def) 9 10add_library(snmpapi SHARED main.c snmpapi.rc) 11 12set_module_type(snmpapi win32dll) 13 14target_link_libraries(snmpapi 15 ${CMAKE_CURRENT_BINARY_DIR}/snmpapi.def 16 wine) 17 18add_importlibs(snmpapi kernel32 ntdll) 19add_dependencies(snmpapi snmpapi_def) 20add_cab_target(snmpapi 1) 21