1
2include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
3add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wlansvc.idl)
4
5list(APPEND SOURCE
6    wlansvc.c
7    rpcserver.c
8    precomp.h
9    ${CMAKE_CURRENT_BINARY_DIR}/wlansvc_s.c)
10
11add_executable(wlansvc ${SOURCE} wlansvc.rc)
12
13if(USE_CLANG_CL)
14    add_target_compile_flags(wlansvc "-Wno-cast-calling-convention")
15endif()
16
17if(NOT MSVC)
18    target_link_libraries(wlansvc ${PSEH_LIB})
19endif()
20
21set_module_type(wlansvc win32cui UNICODE)
22add_importlibs(wlansvc advapi32 rpcrt4 iphlpapi msvcrt kernel32 ntdll)
23add_pch(wlansvc precomp.h SOURCE)
24add_cd_file(TARGET wlansvc DESTINATION reactos/system32 FOR all)
25