14 lines
274 B
CMake
14 lines
274 B
CMake
set(L_NETLIST
|
|
l_net.c l_net.h
|
|
)
|
|
if (WIN32)
|
|
list(APPEND L_NETLIST l_net_wins.c l_net_wins.h)
|
|
else ()
|
|
list(APPEND L_NETLIST l_net_berkley.c)
|
|
endif ()
|
|
|
|
add_library(l_net ${L_NETLIST})
|
|
|
|
if (WIN32)
|
|
target_link_libraries(l_net PRIVATE ws2_32)
|
|
endif ()
|