Skip to content
Snippets Groups Projects
Commit 815246af authored by jan.koester's avatar jan.koester
Browse files

install headers

parent b8558496
No related branches found
No related tags found
No related merge requests found
......@@ -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 )
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment