Changed includes
This commit is contained in:
@@ -4,15 +4,14 @@ project(thrawn)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS true)
|
||||
|
||||
include_directories("/usr/local/include")
|
||||
include_directories("/usr/local/include/mqttpp-0.1")
|
||||
link_directories("/usr/local/lib/mqttpp-0.1")
|
||||
|
||||
include_directories("lib/mqtt++/include")
|
||||
find_package(spdlog CONFIG REQUIRED)
|
||||
find_package(OpenSSL REQUIRED)
|
||||
include(FindLua)
|
||||
find_package(lua REQUIRED)
|
||||
find_package(eclipse-paho-mqtt-c CONFIG REQUIRED)
|
||||
|
||||
add_executable(thrawn src/main.cpp src src/thrawn_api.cpp src/Service.cpp src/Cache.cpp src/LuaEngine.cpp)
|
||||
target_link_libraries(thrawn ${LIBS} spdlog::spdlog ${LUA_LIBRARIES} mqttpp)
|
||||
add_executable(thrawn src/main.cpp src src/thrawn_api.cpp src/Service.cpp src/Cache.cpp src/LuaEngine.cpp lib/mqtt++/src/mqtt++.cpp)
|
||||
target_link_libraries(thrawn ${LIBS} spdlog::spdlog ${LUA_LIBRARIES} OpenSSL::SSL eclipse-paho-mqtt-c::paho-mqtt3cs-static)
|
||||
target_include_directories(thrawn PRIVATE ${LUA_INCLUDE_DIR})
|
||||
install(TARGETS thrawn DESTINATION bin)
|
||||
Reference in New Issue
Block a user