2011-05-16 13:12:07 +00:00
|
|
|
|
2012-05-20 20:33:16 +00:00
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/idl
|
|
|
|
${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
add_definitions(-D__WINESRC__)
|
2012-03-07 21:21:27 +00:00
|
|
|
spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
|
2012-12-22 10:47:06 +00:00
|
|
|
add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
|
2012-05-20 20:33:16 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
list(APPEND SOURCE
|
|
|
|
dllmain.c
|
|
|
|
samlib.c
|
|
|
|
samlib.rc
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c
|
2012-05-20 20:33:16 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib.def
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/sam_c.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
add_library(samlib SHARED ${SOURCE})
|
2012-05-20 20:33:16 +00:00
|
|
|
set_module_type(samlib win32dll UNICODE)
|
2012-05-21 13:38:32 +00:00
|
|
|
target_link_libraries(samlib wine ${PSEH_LIB})
|
2012-05-20 20:33:16 +00:00
|
|
|
add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
|
2011-08-14 16:59:43 +00:00
|
|
|
add_pch(samlib precomp.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)
|