2012-12-22 10:47:06 +00:00
|
|
|
|
2013-06-22 14:44:56 +00:00
|
|
|
set_cpp(WITH_RUNTIME)
|
|
|
|
|
2013-07-20 10:23:07 +00:00
|
|
|
if(NOT MSVC)
|
|
|
|
# HACK: this should be enabled globally!
|
|
|
|
add_compile_flags_language("-std=c++11" "CXX")
|
|
|
|
endif()
|
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
|
2012-12-22 10:47:06 +00:00
|
|
|
add_definitions(-D_NETSHELL_)
|
2011-06-26 21:29:55 +00:00
|
|
|
spec2def(netshell.dll netshell.spec)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND SOURCE
|
2012-01-20 21:50:54 +00:00
|
|
|
netshell.cpp
|
|
|
|
shfldr_netconnect.cpp
|
|
|
|
enumlist.cpp
|
|
|
|
classfactory.cpp
|
|
|
|
connectmanager.cpp
|
|
|
|
lanconnectui.cpp
|
|
|
|
lanstatusui.cpp
|
2014-02-10 12:19:56 +00:00
|
|
|
precomp.h)
|
|
|
|
|
|
|
|
add_library(netshell SHARED
|
|
|
|
${SOURCE}
|
|
|
|
netshell.rc
|
2011-05-16 13:12:07 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/netshell_stubs.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
|
|
|
|
|
|
|
|
set_module_type(netshell win32dll)
|
2012-12-22 10:47:06 +00:00
|
|
|
target_link_libraries(netshell uuid wine)
|
2014-10-17 23:28:29 +00:00
|
|
|
add_importlibs(netshell shlwapi shell32 version iphlpapi ole32 user32 advapi32 setupapi ws2_32 comctl32 msvcrt kernel32 ntdll)
|
2014-02-10 12:19:56 +00:00
|
|
|
add_pch(netshell precomp.h SOURCE)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_cd_file(TARGET netshell DESTINATION reactos/system32 FOR all)
|