reactos/dll/win32/netshell/CMakeLists.txt
Jérôme Gardou 4ee1da42f1 [CMAKE]
- rewrite spec2def macro because
1. cmake gracefully handles def files as source files
2. cmake gracefully handles autogenerated files as source
3. it did not take into account the fact that all shared libraries haven't the .dll extension

svn path=/branches/cmake-bringup/; revision=49358
2010-10-30 16:08:19 +00:00

45 lines
812 B
CMake

add_definitions(-D_NETSHELL_)
remove_definitions(-D_WIN32_WINNT=0x502)
add_definitions(-D_WIN32_WINNT=0x600)
spec2def(netshell.dll netshell.spec)
list(APPEND SOURCE
netshell.c
shfldr_netconnect.c
enumlist.c
netshell.rc
classfactory.c
connectmanager.c
lanconnectui.c
lanstatusui.c
${CMAKE_CURRENT_BINARY_DIR}/netshell.def)
add_library(netshell SHARED
${CMAKE_CURRENT_BINARY_DIR}/netshell_precomp.h.gch
${SOURCE})
set_module_type(netshell win32dll)
target_link_libraries(netshell
uuid
wine)
add_importlibs(netshell
msvcrt
shlwapi
shell32
version
iphlpapi
ole32
user32
advapi32
setupapi
ws2_32
comctl32
kernel32)
add_pch(netshell ${CMAKE_CURRENT_SOURCE_DIR}/precomp.h ${SOURCE})
add_cab_target(netshell 1)