xref: /reactos/dll/win32/hnetcfg/CMakeLists.txt (revision 40462c92)
1
2add_definitions(-D__WINESRC__)
3include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
4spec2def(hnetcfg.dll hnetcfg.spec)
5
6list(APPEND SOURCE
7    apps.c
8    hnetcfg.c
9    manager.c
10    policy.c
11    port.c
12    profile.c
13    service.c
14    precomp.h)
15
16add_library(hnetcfg MODULE
17    ${SOURCE}
18    hnetcfg.rc
19    ${CMAKE_CURRENT_BINARY_DIR}/hnetcfg.def)
20
21add_typelib(hnetcfg_tlb.idl)
22
23list(APPEND hnetcfg_rc_deps
24    ${CMAKE_CURRENT_SOURCE_DIR}/hnetcfg.rgs
25    ${CMAKE_CURRENT_SOURCE_DIR}/hnetcfg_tlb.rgs
26    ${CMAKE_CURRENT_BINARY_DIR}/hnetcfg_tlb.tlb)
27
28set_source_files_properties(hnetcfg.rc PROPERTIES OBJECT_DEPENDS "${hnetcfg_rc_deps}")
29set_module_type(hnetcfg win32dll)
30add_dependencies(hnetcfg stdole2)
31target_link_libraries(hnetcfg wine uuid)
32add_importlibs(hnetcfg ole32 oleaut32 advapi32 mpr msvcrt kernel32 ntdll)
33add_pch(hnetcfg precomp.h SOURCE)
34add_cd_file(TARGET hnetcfg DESTINATION reactos/system32 FOR all)
35