2015-10-23 18:00:33 -06:00
|
|
|
if (OPENZWAVE_FOUND)
|
2017-01-30 18:14:48 -08:00
|
|
|
set (libname "ozw")
|
|
|
|
|
set (libdescription "Module for the OpenZWave library interface")
|
|
|
|
|
set (module_src ${libname}.cxx zwNode.cxx ozwinterface.cxx ozwdump.cxx aeotecss6.cxx aeotecsdg2.cxx aeotecdw2e.cxx aeotecdsb09104.cxx tzemt400.cxx)
|
|
|
|
|
set (module_hpp ${libname}.hpp ozwinterface.hpp ozwdump.hpp aeotecss6.hpp aeotecsdg2.hpp aeotecdw2e.hpp aeotecdsb09104.hpp tzemt400.hpp)
|
|
|
|
|
|
2015-10-23 18:00:33 -06:00
|
|
|
set (reqlibname "libopenzwave")
|
2017-01-30 18:14:48 -08:00
|
|
|
upm_module_init(${OPENZWAVE_LIBRARIES})
|
|
|
|
|
target_include_directories(${libname} PUBLIC ${OPENZWAVE_INCLUDE_DIRS})
|
2016-11-02 22:57:38 -07:00
|
|
|
|
|
|
|
|
# openzwave/aes/aes.h has unknown pragmas, disable warning -Wunknown-pragmas
|
|
|
|
|
compiler_flag_supported(CXX is_supported -Wno-unknown-pragmas)
|
|
|
|
|
if (is_supported)
|
2016-11-03 16:10:35 -07:00
|
|
|
target_compile_options(${libname} PUBLIC -Wno-unknown-pragmas)
|
2016-11-02 22:57:38 -07:00
|
|
|
endif (is_supported)
|
2015-10-23 18:00:33 -06:00
|
|
|
endif ()
|