13 lines
326 B
CMake
13 lines
326 B
CMake
|
|
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()
|
|
|
|
install(TARGETS simple_test DESTINATION bin)
|