Added support for time scheduled lua scripts

This commit is contained in:
2020-11-24 20:08:01 +01:00
parent 2cb0fd1fed
commit e562540313
8 changed files with 131 additions and 8 deletions

View File

@@ -11,8 +11,9 @@ include(FindLua)
find_package(lua REQUIRED)
find_package(InfluxDB REQUIRED)
find_package(eclipse-paho-mqtt-c CONFIG REQUIRED)
find_package(croncpp CONFIG REQUIRED)
add_executable(thrawn src/main.cpp src src/thrawn_api.cpp src/thrawn_api_db_logger.cpp src/Service.cpp src/Cache.cpp src/LuaEngine.cpp lib/mqtt++/src/mqtt++.cpp src/DBLogger.cpp)
target_link_libraries(thrawn ${LIBS} spdlog::spdlog InfluxData::InfluxDB ${LUA_LIBRARIES} OpenSSL::SSL eclipse-paho-mqtt-c::paho-mqtt3cs-static)
target_link_libraries(thrawn ${LIBS} croncpp::croncpp spdlog::spdlog InfluxData::InfluxDB ${LUA_LIBRARIES} OpenSSL::SSL eclipse-paho-mqtt-c::paho-mqtt3cs-static)
target_include_directories(thrawn PRIVATE ${LUA_INCLUDE_DIR})
install(TARGETS thrawn DESTINATION bin)