for_developers:wrapper_lib
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
for_developers:wrapper_lib [2017/04/18 12:32] – kalberer | for_developers:wrapper_lib [2017/04/18 12:43] (current) – kalberer | ||
---|---|---|---|
Line 3: | Line 3: | ||
- Create new CMake project for a shared library. | - Create new CMake project for a shared library. | ||
+ | - Include and link against EEROS: < | ||
+ | include_directories(${EEROS_INCLUDE_DIR}) | ||
+ | link_directories(${EEROS_LIB_DIR})</ | ||
- Include and link against necessary hardware library. If the required hardware library generates a CMake Package, use '' | - Include and link against necessary hardware library. If the required hardware library generates a CMake Package, use '' | ||
include_directories(${FLINK_INCLUDE_DIR}) | include_directories(${FLINK_INCLUDE_DIR}) | ||
- | link_directories(${FLINK_LIB_DIR})</ | + | link_directories(${FLINK_LIB_DIR})</ |
+ | if(COMEDI_INCLUDE_DIR) | ||
+ | include_directories(${COMEDI_INCLUDE_DIR}) | ||
+ | endif() | ||
+ | |||
+ | find_library(COMEDI_LIBRARY comedi) | ||
+ | if(COMEDI_LIBRARY) | ||
+ | message(STATUS "-> libcomedi available" | ||
+ | set(COMEDI_LIBRARY_DIR ${COMEDI_LIBRARY_DIR} comedi) | ||
+ | endif()</ | ||
- Create classes for every type you intend to support (AnalogOut, DigitalIn, PWM, ...): | - Create classes for every type you intend to support (AnalogOut, DigitalIn, PWM, ...): | ||
- These classes have to derive from the EEROS HAL classes In- or Output respectively ScalableIn- or ScalableOutput. You can find these classes in the EEROS repository in folder ''/ | - These classes have to derive from the EEROS HAL classes In- or Output respectively ScalableIn- or ScalableOutput. You can find these classes in the EEROS repository in folder ''/ |
for_developers/wrapper_lib.1492511558.txt.gz · Last modified: 2017/04/18 12:32 by kalberer