Synchronize with trunk revision 59636 (just before Alex's CreateProcess revamp).
[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 samlib.rc
14 ${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c
15 ${CMAKE_CURRENT_BINARY_DIR}/samlib.def
16 ${CMAKE_CURRENT_BINARY_DIR}/sam_c.c)
17
18 add_library(samlib SHARED ${SOURCE})
19 set_module_type(samlib win32dll UNICODE)
20 target_link_libraries(samlib wine ${PSEH_LIB})
21 add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
22 add_pch(samlib precomp.h)
23 add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)