Synchronize up to trunk's revision r57689.
[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
8 set_rc_compiler()
9 spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
10
11 add_rpc_files(client
12 ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
13
14 list(APPEND SOURCE
15 dllmain.c
16 samlib.c
17 samlib.rc
18 ${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c
19 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def
20 ${CMAKE_CURRENT_BINARY_DIR}/sam_c.c)
21
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)
28