[CMAKE]
[reactos.git] / dll / win32 / dwmapi / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3
4 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 set_rc_compiler()
7
8 spec2def(dwmapi.dll dwmapi.spec)
9
10 list(APPEND SOURCE
11 dwmapi_main.c
12 version.rc
13 ${CMAKE_CURRENT_BINARY_DIR}/dwmapi_stubs.c
14 ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def)
15
16 add_library(dwmapi SHARED ${SOURCE})
17
18 set_module_type(dwmapi win32dll)
19 target_link_libraries(dwmapi wine)
20 add_importlibs(dwmapi msvcrt kernel32 ntdll)
21 add_cd_file(TARGET dwmapi DESTINATION reactos/system32 FOR all)