use glob to find mqtt cfg files (fixes #601)

This commit is contained in:
john30
2022-05-09 20:54:18 +02:00
parent ec40589a4a
commit 38388a8a93
+3 -2
View File
@@ -165,5 +165,6 @@ if(EXISTS "${ROOT}/etc/debian_version")
install(FILES ${CMAKE_SOURCE_DIR}/contrib/debian/systemd/ebusd.service DESTINATION /lib/systemd/system/)
endif()
if(HAVE_MQTT)
install(FILES ${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/mqtt-*.cfg DESTINATION /etc/ebusd/)
endif(HAVE_MQTT)
FILE(GLOB MQTT_CFG_FILES "${CMAKE_SOURCE_DIR}/contrib/etc/ebusd/mqtt-*.cfg")
install(FILES ${MQTT_CFG_FILES} DESTINATION /etc/ebusd/)
endif(HAVE_MQTT)