593a81a177
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
15 lines
368 B
CMake
15 lines
368 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()
|
|
|
|
if(NOT DEFINED HOST_INSTALL)
|
|
install(TARGETS simple_test DESTINATION bin)
|
|
endif()
|