[SDK] Fix NT6 building issues and improve SDK NT6 headers.
[reactos.git] / dll / shellext / netshell / CMakeLists.txt
1
2 project(SHELL)
3
4 set_cpp(WITH_RUNTIME)
5
6 if(NOT MSVC)
7 # HACK: this should be enabled globally!
8 add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
9 endif()
10
11 remove_definitions(-D_WIN32_WINNT=0x502)
12 add_definitions(-D_WIN32_WINNT=0x600)
13
14 add_definitions(-D_NETSHELL_)
15 spec2def(netshell.dll netshell.spec)
16
17 list(APPEND SOURCE
18 netshell.cpp
19 shfldr_netconnect.cpp
20 enumlist.cpp
21 classfactory.cpp
22 connectmanager.cpp
23 lanconnectui.cpp
24 lanstatusui.cpp
25 setup.cpp
26 precomp.h)
27
28 file(GLOB netshell_rc_deps res/*.*)
29 add_rc_deps(netshell.rc ${netshell_rc_deps})
30
31 add_library(netshell SHARED
32 ${SOURCE}
33 netshell.rc
34 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c
35 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
36
37 set_module_type(netshell win32dll)
38 target_link_libraries(netshell uuid wine)
39 add_importlibs(netshell shlwapi shell32 version iphlpapi ole32 gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
40 add_pch(netshell precomp.h SOURCE)
41 add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)