From 815246afdf5b323ae795ff92ec4e00dbef6b1ec7 Mon Sep 17 00:00:00 2001 From: "jan.koester" Date: Fri, 20 Oct 2023 12:31:39 +0200 Subject: [PATCH] install headers --- tools/CMakeLists.txt | 6 ++++++ tools/confctl.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 78adf86..fb9878f 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -7,3 +7,9 @@ add_executable(confctl confctl.cpp) target_link_libraries(confctl confplus) install(TARGETS confctl DESTINATION bin) + +install(FILES + ${CMAKE_SOURCE_DIR}/src/backend.h + ${CMAKE_SOURCE_DIR}/src/conf.h + ${CMAKE_SOURCE_DIR}/src/exception.h +DESTINATION include/confplus ) diff --git a/tools/confctl.cpp b/tools/confctl.cpp index 7ac7d41..170ca12 100644 --- a/tools/confctl.cpp +++ b/tools/confctl.cpp @@ -33,9 +33,9 @@ int main(int argc,char *argv[]){ try{ confplus::Config conf(argv[1]); - confplus::Config::ConfigData *domainkey=conf.getKey("/BLOGI/HTTP/DOMAIN"); + confplus::Config::ConfigData *domainkey=conf.getKey("/BLOGI/PLUGINDIR"); if(domainkey){ - std::cout << conf.getValue(domainkey,0) << std::endl; + std::cout << conf.getValue(domainkey,1) << std::endl; } }catch(confplus::ConfException &e){ std::cerr << e.what() << std::endl; -- GitLab