reactos/dll/win32/wlanapi/CMakeLists.txt
Jérôme Gardou 23373acbb9 [CMAKE] Use modules instead of shared libraries
There is no need to compile our DLLs as shared libraries since we are
managing symbols exports and imports through spec files.

On my system, this reduces the configure-time by a factor of two.
2019-04-06 17:43:38 +02:00

18 lines
619 B
CMake

include_directories( ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl)
add_rpc_files(client ${REACTOS_SOURCE_DIR}/sdk/include/reactos/idl/wlansvc.idl)
spec2def(wlanapi.dll wlanapi.spec ADD_IMPORTLIB)
list(APPEND SOURCE
main.c
profile.c
${CMAKE_CURRENT_BINARY_DIR}/wlanapi_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/wlanapi.def
${CMAKE_CURRENT_BINARY_DIR}/wlansvc_c.c)
add_library(wlanapi MODULE ${SOURCE})
set_module_type(wlanapi win32dll)
target_link_libraries(wlanapi wine ${PSEH_LIB})
add_importlibs(wlanapi rpcrt4 msvcrt kernel32 ntdll)
add_cd_file(TARGET wlanapi DESTINATION reactos/system32 FOR all)