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