reactos/dll/win32/mswsock/CMakeLists.txt
Amine Khaldi 2aa2457be2 [CMAKE]
- Add mscoree, msg711.acm, msgina, msgsm32.acm, msimg32, msnet32, mssign32, mssip32, msvcrt20, msvcrt40, msvfw32, msvidc32, mswsock, nddeapi, netapi32, newdev, ntdsapi, ntlanman, ntprint, olecli32, oledlg, olesvr32, olethk32, pidgen, powrprof, printui, query, rasapi32, rasdlg, rasman, resutils and samlib to build.

svn path=/branches/cmake-bringup/; revision=48633
2010-08-28 13:20:03 +00:00

23 lines
748 B
CMake

set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
include_directories(${REACTOS_SOURCE_DIR}/include/reactos/wine)
add_definitions(-DUNICODE -D_UNICODE)
add_definitions(-DLE)
spec2def(mswsock ${CMAKE_CURRENT_SOURCE_DIR}/mswsock.spec ${CMAKE_CURRENT_BINARY_DIR}/mswsock.def)
add_library(mswsock SHARED
extensions.c
stubs.c
mswsock.rc)
set_target_properties(mswsock PROPERTIES LINK_FLAGS "-Wl,-entry,_DllMain@12")
target_link_libraries(mswsock
${CMAKE_CURRENT_BINARY_DIR}/mswsock.def
-lws2_32
${REACTOS_SOURCE_DIR}/dll/win32/kernel32/libkernel32.a)
add_dependencies(mswsock mswsock_def psdk)