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