Sync with trunk (r49303)
[reactos.git] / dll / win32 / netshell / CMakeLists.txt
1
2 add_definitions(-D_NETSHELL_)
3 remove_definitions(-D_WIN32_WINNT=0x502)
4 add_definitions(-D_WIN32_WINNT=0x600)
5
6 spec2def(netshell ${CMAKE_CURRENT_SOURCE_DIR}/netshell.spec ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
7
8 list(APPEND SOURCE
9 netshell.c
10 shfldr_netconnect.c
11 enumlist.c
12 netshell.rc
13 classfactory.c
14 connectmanager.c
15 lanconnectui.c
16 lanstatusui.c)
17
18 add_library(netshell SHARED
19 ${CMAKE_CURRENT_BINARY_DIR}/netshell_precomp.h.gch
20 ${SOURCE})
21
22 set_module_type(netshell win32dll)
23
24 target_link_libraries(netshell
25 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def
26 uuid
27 wine)
28
29 add_importlibs(netshell
30 msvcrt
31 shlwapi
32 shell32
33 version
34 iphlpapi
35 ole32
36 user32
37 advapi32
38 setupapi
39 ws2_32
40 comctl32
41 kernel32)
42
43 add_pch(netshell ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
44 add_dependencies(netshell netshell_def)
45 add_livecd_target(netshell reactos/system32)