1 2include_directories( 3 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl 4 ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine) 5 6add_definitions(-D__WINESRC__) 7spec2def(samlib.dll samlib.spec ADD_IMPORTLIB) 8add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/sam.idl) 9 10list(APPEND SOURCE 11 dllmain.c 12 samlib.c 13 precomp.h 14 ${CMAKE_CURRENT_BINARY_DIR}/sam_c.c 15 ${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c) 16 17add_library(samlib MODULE 18 ${SOURCE} 19 samlib.rc 20 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def) 21 22set_module_type(samlib win32dll UNICODE) 23target_link_libraries(samlib wine ${PSEH_LIB}) 24add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll) 25add_pch(samlib precomp.h SOURCE) 26add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all) 27