Sync to trunk r65566.
[reactos.git] / dll / win32 / samlib / CMakeLists.txt
1
2 include_directories(
3 ${REACTOS_SOURCE_DIR}/include/reactos/idl
4 ${REACTOS_SOURCE_DIR}/include/reactos/wine)
5
6 add_definitions(-D__WINESRC__)
7 spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
8 add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
9
10 list(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
17 add_library(samlib SHARED
18 ${SOURCE}
19 samlib.rc
20 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def)
21
22 set_module_type(samlib win32dll UNICODE)
23 target_link_libraries(samlib wine ${PSEH_LIB})
24 add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
25 add_pch(samlib precomp.h SOURCE)
26 add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)