File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,13 @@ else()
8989 message (STATUS "Curses Development Kit (CDK) missing or too old, skipping iio-monitor" )
9090endif ()
9191
92+ if (PTHREAD_LIBRARIES OR ANDROID)
93+ project (iio_adi_xflow_check C)
94+ add_executable (iio_adi_xflow_check iio_adi_xflow_check.c)
95+ target_link_libraries (iio_adi_xflow_check iio iio_tests_helper ${PTHREAD_LIBRARIES} )
96+ set (IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_adi_xflow_check)
97+ endif ()
98+
9299set_target_properties (
93100 ${IIO_TESTS_TARGETS} PROPERTIES C_STANDARD 99 C_STANDARD_REQUIRED ON
94101 C_EXTENSIONS OFF
Original file line number Diff line number Diff line change 1515#include <string.h>
1616#include <unistd.h>
1717
18- #include "iio_common.h"
18+ #include "../tests/ iio_common.h"
1919
2020
2121#define MY_NAME "iio_adi_xflow_check"
Original file line number Diff line number Diff line change @@ -57,13 +57,10 @@ target_link_libraries(iio_writedev iio iio_tests_helper)
5757set (IIO_TESTS_TARGETS iio_genxml iio_info iio_attr iio_readdev iio_reg iio_writedev)
5858
5959if (PTHREAD_LIBRARIES OR ANDROID)
60- project (iio_adi_xflow_check C)
6160 project (iio_stresstest C)
62- add_executable (iio_adi_xflow_check iio_adi_xflow_check.c)
6361 add_executable (iio_stresstest iio_stresstest.c)
64- target_link_libraries (iio_adi_xflow_check iio iio_tests_helper ${PTHREAD_LIBRARIES} )
6562 target_link_libraries (iio_stresstest iio iio_tests_helper ${PTHREAD_LIBRARIES} )
66- set (IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_adi_xflow_check iio_stresstest)
63+ set (IIO_TESTS_TARGETS ${IIO_TESTS_TARGETS} iio_stresstest)
6764
6865 target_link_libraries (iio_readdev ${PTHREAD_LIBRARIES} )
6966 target_link_libraries (iio_writedev ${PTHREAD_LIBRARIES} )
You can’t perform that action at this time.
0 commit comments