[CMAKE] Introduce the atl_classes interface library
[reactos.git] / dll / shellext / netshell / CMakeLists.txt
1
2 project(SHELL)
3
4
5 if(NOT MSVC)
6 # HACK: this should be enabled globally!
7 add_compile_flags_language("-std=c++11 -Wshadow" "CXX")
8 endif()
9
10 remove_definitions(-D_WIN32_WINNT=0x502)
11 add_definitions(-D_WIN32_WINNT=0x600)
12
13 add_definitions(-D_NETSHELL_)
14 spec2def(netshell.dll netshell.spec)
15
16 list(APPEND SOURCE
17 netshell.cpp
18 shfldr_netconnect.cpp
19 enumlist.cpp
20 connectmanager.cpp
21 lanconnectui.cpp
22 lanstatusui.cpp
23 setup.cpp)
24
25 list(APPEND PCH_SKIP_SOURCE
26 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c)
27
28 file(GLOB netshell_rc_deps res/*.*)
29 add_rc_deps(netshell.rc ${netshell_rc_deps})
30
31 add_library(netshell MODULE
32 ${SOURCE}
33 ${PCH_SKIP_SOURCE}
34 netshell.rc
35 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
36
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)