mirror of
https://github.com/reactos/reactos.git
synced 2024-11-06 14:44:19 +00:00
f44e914e80
svn path=/branches/ros-csrss/; revision=58034
23 lines
736 B
CMake
23 lines
736 B
CMake
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/include/reactos/idl
|
|
${REACTOS_SOURCE_DIR}/include/reactos/wine)
|
|
|
|
add_definitions(-D__WINESRC__)
|
|
spec2def(samlib.dll samlib.spec ADD_IMPORTLIB)
|
|
add_rpc_files(client ${REACTOS_SOURCE_DIR}/include/reactos/idl/sam.idl)
|
|
|
|
list(APPEND SOURCE
|
|
dllmain.c
|
|
samlib.c
|
|
samlib.rc
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib_stubs.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/samlib.def
|
|
${CMAKE_CURRENT_BINARY_DIR}/sam_c.c)
|
|
|
|
add_library(samlib SHARED ${SOURCE})
|
|
set_module_type(samlib win32dll UNICODE)
|
|
target_link_libraries(samlib wine ${PSEH_LIB})
|
|
add_importlibs(samlib rpcrt4 advapi32 msvcrt kernel32 ntdll)
|
|
add_pch(samlib precomp.h)
|
|
add_cd_file(TARGET samlib DESTINATION reactos/system32 FOR all)
|