build lokimq from pkg-config
This commit is contained in:
parent
626316e49c
commit
fc1a85da79
|
@ -48,6 +48,8 @@ endif()
|
||||||
add_compile_options(-Wno-deprecated-declarations)
|
add_compile_options(-Wno-deprecated-declarations)
|
||||||
|
|
||||||
add_subdirectory(external/pybind11)
|
add_subdirectory(external/pybind11)
|
||||||
add_subdirectory(external/loki-mq)
|
|
||||||
|
include(FindPkgConfig)
|
||||||
|
pkg_check_modules(lokimq REQUIRED IMPORTED_TARGET GLOBAL liblokimq)
|
||||||
|
|
||||||
add_subdirectory(pylokimq)
|
add_subdirectory(pylokimq)
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Lokinet Auth Server
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=nobody
|
||||||
|
SyslogIdentifier=lokinet-auth
|
||||||
|
ExecStart=/usr/bin/python3 -m lokinet.auth --bind tcp://0.0.0.0:5555/ --cmd /usr/local/exit-provider/check.sh
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -5,6 +5,6 @@ pybind11_add_module(pylokimq MODULE
|
||||||
module.cpp
|
module.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(pylokimq PUBLIC lokimq::lokimq)
|
target_link_libraries(pylokimq PUBLIC PkgConfig::lokimq)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue