This is a rewrite of `simple_test` with the following major changes:
* portable codebase, so no splitting between different OS;
* no threads: they are not needed for such simple task;
* use newer APIs (i.e., ecx_... functions).
* Replaced CMAKE_SOURCE_DIR with CMAKE_CURRENT_LIST_DIR to make SOEM CMakeLists.txt more relocatable.
* Installed SOEM CMake config files to a more universal location to search.
* Port to macOS
This port to macOS is an amalgam of the existing Linux and Win32
ports. Consequently code is duplicated from each in this port:
primarily from win32 in oshw, and Linux is osal.
Synthesizing a shared common posix port, did not seem warranted given
the modest amount of code, and stable api.
This port uses the default pcap interface provided in the development
libraries shipped with XCode.
Limited testing on os releases: 10.13 and 10.14.
* fix possible race condition as for win32
See aed0f81724
* fix spelling as for linux / win32
See 7beba91c62
* cleanup CMakeLists.txt
* build with more warnings, warnings as errors
* fix expression has no effect warning
* fix unused parameter warnings
* fix loss of precision warning
* remove obsolete files
This commit allows sane installation of SOEM on the host system, while
minimally affecting the current usage of cross-compilation.
The changes are:
- CMAKE_INSTALL_PREFIX is not overriden when installing on host,
- header files are installed in include/soem/ when installing on host,
- libsoem.a is installed in lib/ instead of bin/,
- simple_test is not installed on host.
Usage is:
cmake -DHOST_INSTALL=1 .
Closes#21Closes#22
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>