xref: /reactos/dll/win32/snmpapi/CMakeLists.txt (revision 98e8827a)
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(snmpapi.dll snmpapi.spec ADD_IMPORTLIB)
8
9list(APPEND SOURCE
10    main.c
11    ${CMAKE_CURRENT_BINARY_DIR}/snmpapi_stubs.c
12    ${CMAKE_CURRENT_BINARY_DIR}/snmpapi.def)
13
14add_library(snmpapi MODULE ${SOURCE} snmpapi.rc)
15set_module_type(snmpapi win32dll)
16target_link_libraries(snmpapi wine)
17add_importlibs(snmpapi msvcrt kernel32_vista kernel32 ntdll)
18add_cd_file(TARGET snmpapi DESTINATION reactos/system32 FOR all)
19