2015-07-09 17:57:59 +02:00
|
|
|
|
|
|
|
set(SOURCES simple_test.c)
|
|
|
|
add_executable(simple_test ${SOURCES})
|
|
|
|
target_link_libraries(simple_test soem)
|
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
target_link_libraries(simple_test wpcap.lib Packet.lib Ws2_32.lib Winmm.lib)
|
|
|
|
elseif(UNIX)
|
|
|
|
target_link_libraries(simple_test pthread rt)
|
|
|
|
endif()
|
|
|
|
|
2015-12-18 19:15:24 +01:00
|
|
|
if(NOT DEFINED HOST_INSTALL)
|
|
|
|
install(TARGETS simple_test DESTINATION bin)
|
|
|
|
endif()
|