mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 16:48:16 +00:00
2aa2457be2
- 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
23 lines
748 B
CMake
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)
|