6 # HACK: this should be enabled globally!
7 add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
10 remove_definitions(-D_WIN32_WINNT=0x502)
11 add_definitions(-D_WIN32_WINNT=0x600)
13 add_definitions(-D_NETSHELL_)
14 spec2def(netshell.dll netshell.spec)
25 list(APPEND PCH_SKIP_SOURCE
26 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c)
28 file(GLOB netshell_rc_deps res/*.*)
29 add_rc_deps(netshell.rc ${netshell_rc_deps})
31 add_library(netshell MODULE
35 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
37 set_module_type(netshell win32dll UNICODE)
38 target_link_libraries(netshell uuid wine cpprt atl_classes)
39 add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
40 add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
41 add_pch(netshell precomp.h "${PCH_SKIP_SOURCE}")
42 add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)