diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fae573..e907542 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,7 +53,6 @@ add_subdirectory(cppzmq EXCLUDE_FROM_ALL) target_include_directories(lokimq PUBLIC $ - $ $ $ ) @@ -111,6 +110,26 @@ install( ${CMAKE_CURRENT_BINARY_DIR}/lokimq/version.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lokimq ) +option(LOKIMQ_INSTALL_MAPBOX_VARIANT "Install mapbox-variant headers with lokimq/ headers" ON) +if(LOKIMQ_INSTALL_MAPBOX_VARIANT) + install( + FILES mapbox-variant/include/mapbox/variant.hpp + mapbox-variant/include/mapbox/variant_cast.hpp + mapbox-variant/include/mapbox/variant_io.hpp + mapbox-variant/include/mapbox/variant_visitor.hpp + mapbox-variant/include/mapbox/recursive_wrapper.hpp + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lokimq/mapbox + ) +endif() + +option(LOKIMQ_INSTALL_CPPZMQ "Install cppzmq header with lokimq/ headers" ON) +if(LOKIMQ_INSTALL_CPPZMQ) + install( + FILES cppzmq/zmq.hpp + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/lokimq + ) +endif() + install( FILES ${CMAKE_CURRENT_BINARY_DIR}/liblokimq.pc diff --git a/lokimq/lokimq.h b/lokimq/lokimq.h index 3624da4..216bd74 100644 --- a/lokimq/lokimq.h +++ b/lokimq/lokimq.h @@ -41,7 +41,7 @@ #include #include #include -#include +#include "zmq.hpp" #include "bt_serialize.h" #include "string_view.h" #include "connections.h"