3 ${REACTOS_SOURCE_DIR}/include/reactos/idl
4 ${REACTOS_SOURCE_DIR}/include/reactos/wine)
6 add_definitions(-D__WINESRC__)
9 spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
12 ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
18 ${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c
19 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def
20 ${CMAKE_CURRENT_BINARY_DIR}/sam_c.c)
22 add_library(samlib SHARED ${SOURCE})
23 set_module_type(samlib win32dll UNICODE)
24 target_link_libraries(samlib wine ${PSEH_LIB})
25 add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
26 add_pch(samlib precomp.h)
27 add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)