1 2add_definitions(-D__WINESRC__) 3 4include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 5spec2def(dwmapi.dll dwmapi.spec) 6 7list(APPEND SOURCE 8 dwmapi_main.c) 9 10add_library(dwmapi MODULE 11 ${SOURCE} 12 version.rc 13 ${CMAKE_CURRENT_BINARY_DIR}/dwmapi.def 14 ${CMAKE_CURRENT_BINARY_DIR}/dwmapi_stubs.c) 15 16set_module_type(dwmapi win32dll UNICODE ENTRYPOINT 0) 17target_link_libraries(dwmapi uuid wine) 18add_importlibs(dwmapi user32 kernel32 ntdll) 19add_cd_file(TARGET dwmapi DESTINATION reactos/system32 FOR all) 20