2011-05-16 13:12:07 +00:00
|
|
|
|
2016-04-20 12:36:25 +00:00
|
|
|
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
|
|
|
|
add_rpc_files(server ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wlansvc.idl)
|
2011-08-07 00:53:19 +00:00
|
|
|
|
2014-02-08 19:01:04 +00:00
|
|
|
list(APPEND SOURCE
|
2011-08-07 00:53:19 +00:00
|
|
|
wlansvc.c
|
|
|
|
rpcserver.c
|
2014-02-08 19:01:04 +00:00
|
|
|
precomp.h
|
2011-08-07 00:53:19 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/wlansvc_s.c)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2016-02-07 20:08:08 +00:00
|
|
|
add_executable(wlansvc ${SOURCE} wlansvc.rc)
|
2014-02-08 19:01:04 +00:00
|
|
|
|
2022-05-25 23:03:50 +00:00
|
|
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(wlansvc PRIVATE "-Wno-cast-calling-convention")
|
2017-12-07 22:26:59 +00:00
|
|
|
endif()
|
|
|
|
|
2011-08-07 00:53:19 +00:00
|
|
|
if(NOT MSVC)
|
2012-09-09 23:59:16 +00:00
|
|
|
target_link_libraries(wlansvc ${PSEH_LIB})
|
2011-08-07 00:53:19 +00:00
|
|
|
endif()
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2011-09-03 19:11:44 +00:00
|
|
|
set_module_type(wlansvc win32cui UNICODE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_importlibs(wlansvc advapi32 rpcrt4 iphlpapi msvcrt kernel32 ntdll)
|
2014-02-08 19:01:04 +00:00
|
|
|
add_pch(wlansvc precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET wlansvc DESTINATION reactos/system32 FOR all)
|