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