2017-01-30 18:14:48 -08:00
|
|
|
set (libname "interfaces")
|
2016-12-15 15:15:21 -08:00
|
|
|
set (libdescription "CXX Interface Library")
|
2017-01-30 18:14:48 -08:00
|
|
|
set (module_src ${libname}.cxx)
|
|
|
|
|
|
|
|
|
|
upm_module_init()
|
|
|
|
|
|
2017-02-06 16:15:58 -08:00
|
|
|
# Add a PUBLIC include directory to the CMAKE src dir
|
|
|
|
|
target_include_directories (${libname} PUBLIC ${CMAKE_SOURCE_DIR}/src)
|
|
|
|
|
|
2017-01-30 18:14:48 -08:00
|
|
|
# Don't add the hpp files with upm_module_init, this allows
|
|
|
|
|
# them to be installed separately
|
|
|
|
|
set (module_hpp iADC.hpp
|
|
|
|
|
iCO2Sensor.hpp
|
|
|
|
|
iHumiditySensor.hpp
|
|
|
|
|
iLightController.hpp
|
|
|
|
|
iLightSensor.hpp
|
|
|
|
|
iModuleStatus.hpp
|
|
|
|
|
iPressureSensor.hpp
|
|
|
|
|
iTemperatureSensor.hpp)
|
|
|
|
|
# Install interfaces headers a bit differently
|
2017-11-16 12:00:42 -08:00
|
|
|
install (FILES ${module_hpp} DESTINATION include/upm/${libname}
|
|
|
|
|
COMPONENT ${CMAKE_PROJECT_NAME})
|