Build simple_test, but don't install

Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This commit is contained in:
Shahbaz Youssefi 2015-12-18 13:15:24 -05:00
parent 529ffbe0cd
commit 593a81a177
3 changed files with 6 additions and 5 deletions

View File

@ -67,6 +67,4 @@ install(FILES ${SOEM_HEADERS} ${OSAL_HEADERS} ${OSHW_HEADERS} DESTINATION ${SOEM
add_subdirectory(test/linux/slaveinfo)
add_subdirectory(test/linux/eepromtool)
if(NOT DEFINED HOST_INSTALL)
add_subdirectory(test/linux/simple_test)
endif()
add_subdirectory(test/linux/simple_test)

View File

@ -9,4 +9,6 @@ elseif(UNIX)
target_link_libraries(simple_test pthread rt)
endif()
install(TARGETS simple_test DESTINATION bin)
if(NOT DEFINED HOST_INSTALL)
install(TARGETS simple_test DESTINATION bin)
endif()

View File

@ -11,6 +11,7 @@
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "ethercat.h"
@ -102,7 +103,7 @@ void simpletest(char *ifname)
{
printf(" %2.2x", *(ec_slave[0].inputs + j));
}
printf(" T:%lld\r",ec_DCtime);
printf(" T:%"PRId64"\r",ec_DCtime);
needlf = TRUE;
}
osal_usleep(5000);