1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/browser.idl)
4spec2def(browser.dll browser.spec ADD_IMPORTLIB)
5
6list(APPEND SOURCE
7    browser.c
8    rpcserver.c
9    precomp.h)
10
11add_library(browser MODULE
12    ${SOURCE}
13    browser.rc
14    ${CMAKE_CURRENT_BINARY_DIR}/browser_s.c
15    ${CMAKE_CURRENT_BINARY_DIR}/browser_stubs.c
16    ${CMAKE_CURRENT_BINARY_DIR}/browser.def)
17
18set_module_type(browser win32dll UNICODE)
19target_link_libraries(browser wine ${PSEH_LIB})
20add_importlibs(browser advapi32 rpcrt4 msvcrt kernel32 ntdll)
21add_pch(browser precomp.h SOURCE)
22add_cd_file(TARGET browser DESTINATION reactos/system32 FOR all)
23