* Sync up to trunk HEAD (r62285). Branch guys deserve the significant speedups too ;)
[reactos.git] / dll / win32 / netshell / CMakeLists.txt
1
2 set_cpp(WITH_RUNTIME)
3
4 if(NOT MSVC)
5 # HACK: this should be enabled globally!
6 add_compile_flags_language("-std=c++11" "CXX")
7 endif()
8
9 remove_definitions(-D_WIN32_WINNT=0x502)
10 add_definitions(-D_WIN32_WINNT=0x600)
11
12 add_definitions(-D_NETSHELL_)
13
14 spec2def(netshell.dll netshell.spec)
15
16 list(APPEND SOURCE
17 netshell.cpp
18 shfldr_netconnect.cpp
19 enumlist.cpp
20 classfactory.cpp
21 connectmanager.cpp
22 lanconnectui.cpp
23 lanstatusui.cpp
24 precomp.h)
25
26 add_library(netshell SHARED
27 ${SOURCE}
28 netshell.rc
29 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c
30 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
31
32 set_module_type(netshell win32dll)
33 target_link_libraries(netshell uuid wine)
34
35 add_importlibs(netshell
36 msvcrt
37 shlwapi
38 shell32
39 version
40 iphlpapi
41 ole32
42 user32
43 advapi32
44 setupapi
45 ws2_32
46 comctl32
47 kernel32
48 ntdll)
49
50 add_pch(netshell precomp.h SOURCE)
51 add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)