[CMAKE]
[reactos.git] / dll / win32 / wshtcpip / CMakeLists.txt
index 4aded70..84688a8 100644 (file)
@@ -1,15 +1,16 @@
 
+add_definitions(-DUNICODE -D_UNICODE)
 include_directories(${REACTOS_SOURCE_DIR}/lib/tdilib)
 
 spec2def(wshtcpip ${CMAKE_CURRENT_SOURCE_DIR}/wshtcpip.spec ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def)
 
 add_library(wshtcpip SHARED wshtcpip.c wshtcpip.rc)
 
-set_module_type(wshtcpip win32dll)
+set_target_properties(wshtcpip PROPERTIES LINK_FLAGS "-Wl,-entry,0")
 
 target_link_libraries(wshtcpip
     ${CMAKE_CURRENT_BINARY_DIR}/wshtcpip.def
     tdilib)
 
-add_importlibs(wshtcpip ntdll ws2_32)
+add_importlibs(wshtcpip kernel32 ntdll ws2_32)
 add_dependencies(wshtcpip wshtcpip_def psdk)