7a5fa8b7a223682463b51566ca403d5cc20d415d
[reactos.git] / reactos / dll / win32 / snmpapi / CMakeLists.txt
1
2 remove_definitions(-D_WIN32_WINNT=0x502)
3 add_definitions(-D_WIN32_WINNT=0x600)
4
5 add_definitions(-D__WINESRC__)
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
7 spec2def(snmpapi.dll snmpapi.spec ADD_IMPORTLIB)
8
9 list(APPEND SOURCE
10 main.c
11 ${CMAKE_CURRENT_BINARY_DIR}/snmpapi_stubs.c
12 ${CMAKE_CURRENT_BINARY_DIR}/snmpapi.def)
13
14 add_library(snmpapi SHARED ${SOURCE} snmpapi.rc)
15 set_module_type(snmpapi win32dll)
16 target_link_libraries(snmpapi wine)
17 add_importlibs(snmpapi msvcrt kernel32 ntdll)
18 add_cd_file(TARGET snmpapi DESTINATION reactos/system32 FOR all)