rawnet - add link libraries, debugging defines.

This commit is contained in:
Kelvin Sherlock 2018-12-14 20:35:04 -05:00
parent 698678f508
commit 1b1983b64a

View File

@ -1,5 +1,5 @@
if (WIN32)
if(WIN32)
set(rawnetarch rawnetarch_win32.c)
elseif(APPLE)
set(rawnetarch rawnetarch_darwin.c)
@ -10,4 +10,11 @@ endif()
add_library(rawnet cs8900.c rawnet.c rawnetsupp.c ${rawnetarch})
target_compile_definitions(rawnet PUBLIC HAVE_RAWNET)
target_compile_definitions(rawnet PRIVATE CS8900_DEBUG CS8900_DEBUG_STORE CS8900_DEBUG_LOAD)
if(WIN32)
elseif(APPLE)
target_link_libraries(rawnet PRIVATE "-framework vmnet")
elseif(UNIX)
target_link_libraries(rawnet PRIVATE pcap)
endif()