1 2add_definitions( 3 -D__WINESRC__ 4 -D_WINE) 5 6include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 7spec2def(mpr.dll mpr.spec ADD_IMPORTLIB) 8 9list(APPEND SOURCE 10 auth.c 11 mpr_main.c 12 multinet.c 13 nps.c 14 pwcache.c 15 wnet.c 16 precomp.h 17 ${CMAKE_CURRENT_BINARY_DIR}/mpr_stubs.c) 18 19add_library(mpr MODULE 20 ${SOURCE} 21 mpr.rc 22 ${CMAKE_CURRENT_BINARY_DIR}/mpr.def) 23 24set_module_type(mpr win32dll) 25target_link_libraries(mpr wine) 26add_importlibs(mpr advapi32 user32 msvcrt kernel32 ntdll) 27add_pch(mpr precomp.h SOURCE) 28add_cd_file(TARGET mpr DESTINATION reactos/system32 FOR all) 29