1
2project(SHELL)
3
4set_cpp(WITH_RUNTIME)
5
6if(NOT MSVC)
7    # HACK: this should be enabled globally!
8    add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
9endif()
10
11remove_definitions(-D_WIN32_WINNT=0x502)
12add_definitions(-D_WIN32_WINNT=0x600)
13
14add_definitions(
15    -D_ATL_NO_EXCEPTIONS)
16
17include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
18
19add_definitions(-D_NETSHELL_)
20spec2def(netshell.dll netshell.spec)
21
22list(APPEND SOURCE
23    netshell.cpp
24    shfldr_netconnect.cpp
25    enumlist.cpp
26    connectmanager.cpp
27    lanconnectui.cpp
28    lanstatusui.cpp
29    setup.cpp)
30
31list(APPEND PCH_SKIP_SOURCE
32    ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c)
33
34file(GLOB netshell_rc_deps res/*.*)
35add_rc_deps(netshell.rc ${netshell_rc_deps})
36
37add_library(netshell MODULE
38    ${SOURCE}
39    ${PCH_SKIP_SOURCE}
40    netshell.rc
41    ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
42
43set_module_type(netshell win32dll UNICODE)
44target_link_libraries(netshell uuid wine)
45add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
46add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
47add_pch(netshell precomp.h "${PCH_SKIP_SOURCE}")
48add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)
49