3d4d72b1a933a9e082c906250bd535391d268046
[reactos.git] / dll / win32 / hnetcfg / CMakeLists.txt
1
2 add_definitions(-D__WINESRC__)
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x600)
5 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
6
7 spec2def(hnetcfg ${CMAKE_CURRENT_SOURCE_DIR}/hnetcfg.spec ${CMAKE_CURRENT_BINARY_DIR}/hnetcfg.def)
8
9 add_library(hnetcfg SHARED
10 apps.c
11 hnetcfg.c
12 manager.c
13 policy.c
14 port.c
15 profile.c
16 regsvr.c
17 service.c)
18
19 set_module_type(hnetcfg win32dll)
20
21 target_link_libraries(hnetcfg
22 ${CMAKE_CURRENT_BINARY_DIR}/hnetcfg.def
23 wine)
24
25 add_importlibs(hnetcfg
26 ole32
27 advapi32
28 kernel32
29 ntdll)
30
31 add_dependencies(hnetcfg hnetcfg_def)
32 add_livecd_target(hnetcfg reactos/system32)