1 2project(SHELL) 3 4remove_definitions(-D_WIN32_WINNT=0x502) 5add_definitions(-D_WIN32_WINNT=0x600) 6 7add_definitions(-D_NETSHELL_) 8spec2def(netshell.dll netshell.spec) 9 10list(APPEND SOURCE 11 netshell.cpp 12 shfldr_netconnect.cpp 13 enumlist.cpp 14 connectmanager.cpp 15 lanconnectui.cpp 16 lanstatusui.cpp 17 setup.cpp) 18 19list(APPEND PCH_SKIP_SOURCE 20 ${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c) 21 22file(GLOB netshell_rc_deps res/*.*) 23add_rc_deps(netshell.rc ${netshell_rc_deps}) 24 25add_library(netshell MODULE 26 ${SOURCE} 27 ${PCH_SKIP_SOURCE} 28 netshell.rc 29 ${CMAKE_CURRENT_BINARY_DIR}/netshell.def) 30 31set_module_type(netshell win32dll UNICODE) 32target_link_libraries(netshell uuid wine cpprt atl_classes) 33add_delay_importlibs(netshell ole32 oleaut32 shlwapi shell32) 34add_importlibs(netshell version iphlpapi gdi32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll) 35add_pch(netshell precomp.h "${PCH_SKIP_SOURCE}") 36add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all) 37