2ed317395d0dc169f2316fd7f87e79b08702bb25
[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(
15 -D_ATL_NO_EXCEPTIONS)
16
17 include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/atl)
18
19 add_definitions(-D_NETSHELL_)
20 spec2def(netshell.dll netshell.spec)
21
22 list(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
31 list(APPEND PCH_SKIP_SOURCE
32 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c)
33
34 file(GLOB netshell_rc_deps res/*.*)
35 add_rc_deps(netshell.rc ${netshell_rc_deps})
36
37 add_library(netshell MODULE
38 ${SOURCE}
39 ${PCH_SKIP_SOURCE}
40 netshell.rc
41 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
42
43 set_module_type(netshell win32dll UNICODE)
44 target_link_libraries(netshell uuid wine)
45 add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32)
46 add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
47 add_pch(netshell precomp.h "${PCH_SKIP_SOURCE}")
48 add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)