1 2include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine) 3add_definitions(-D__WINESRC__) 4 5spec2def(nddeapi.dll nddeapi.spec) 6 7list(APPEND SOURCE 8 nddeapi.c 9 ${CMAKE_CURRENT_BINARY_DIR}/nddeapi_stubs.c 10 ${CMAKE_CURRENT_BINARY_DIR}/nddeapi.def) 11 12add_library(nddeapi SHARED ${SOURCE}) 13set_module_type(nddeapi win32dll) 14 15target_link_libraries(nddeapi wine) 16 17add_importlibs(nddeapi msvcrt kernel32 ntdll) 18add_dependencies(nddeapi psdk) 19add_cd_file(TARGET nddeapi DESTINATION reactos/system32 FOR all) 20