Commit 90aa1b41 by Maarten L. Hekkelman

rename libconfig to libcfp

parent f4fcf3c2
...@@ -107,7 +107,7 @@ if(NOT PDB_REDO_META) ...@@ -107,7 +107,7 @@ if(NOT PDB_REDO_META)
add_git_submodule(date EXCLUDE_FROM_ALL) add_git_submodule(date EXCLUDE_FROM_ALL)
find_package(gxrio REQUIRED) find_package(gxrio REQUIRED)
find_package(libconfig REQUIRED) find_package(libcfp REQUIRED)
find_package(cifpp 5.0.0 REQUIRED) find_package(cifpp 5.0.0 REQUIRED)
endif() endif()
...@@ -124,7 +124,7 @@ add_executable(mkdssp ...@@ -124,7 +124,7 @@ add_executable(mkdssp
$<TARGET_OBJECTS:dssp_library>) $<TARGET_OBJECTS:dssp_library>)
target_include_directories(mkdssp PRIVATE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/date/include) target_include_directories(mkdssp PRIVATE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/date/include)
target_link_libraries(mkdssp PRIVATE dssp_library cifpp::cifpp libconfig::libconfig gxrio::gxrio) target_link_libraries(mkdssp PRIVATE dssp_library cifpp::cifpp libcfp::libcfp gxrio::gxrio)
if(USE_RSRC) if(USE_RSRC)
mrc_target_resources(mkdssp ${CIFPP_SHARE_DIR}/mmcif_pdbx.dic ${CIFPP_SHARE_DIR}/mmcif_ddl.dic) mrc_target_resources(mkdssp ${CIFPP_SHARE_DIR}/mmcif_pdbx.dic ${CIFPP_SHARE_DIR}/mmcif_ddl.dic)
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>
#include <cfg.hpp> #include <cfp/cfp.hpp>
#include <gxrio.hpp> #include <gxrio.hpp>
#include <cif++/pdb/io.hpp> #include <cif++/pdb/io.hpp>
...@@ -68,22 +68,22 @@ int d_main(int argc, const char *argv[]) ...@@ -68,22 +68,22 @@ int d_main(int argc, const char *argv[])
{ {
using namespace std::literals; using namespace std::literals;
auto &config = cfg::config::instance(); auto &config = cfp::config::instance();
config.init("Usage: mkdssp [options] input-file [output-file]", config.init("Usage: mkdssp [options] input-file [output-file]",
cfg::make_option<std::string>("output-format", "Output format, can be either 'dssp' for classic DSSP or 'mmcif' for annotated mmCIF. The default is chosen based on the extension of the output file, if any."), cfp::make_option<std::string>("output-format", "Output format, can be either 'dssp' for classic DSSP or 'mmcif' for annotated mmCIF. The default is chosen based on the extension of the output file, if any."),
cfg::make_option<short>("min-pp-stretch", 3, "Minimal number of residues having PSI/PHI in range for a PP helix, default is 3"), cfp::make_option<short>("min-pp-stretch", 3, "Minimal number of residues having PSI/PHI in range for a PP helix, default is 3"),
cfg::make_option("write-other", "If set, write the type OTHER for loops, default is to leave this out"), cfp::make_option("write-other", "If set, write the type OTHER for loops, default is to leave this out"),
// cfg::make_option("components", po::value<std::string, "Location of the components.cif file from CCD") // cfp::make_option("components", po::value<std::string, "Location of the components.cif file from CCD")
// cfg::make_option("extra-compounds", po::value<std::string, "File containing residue information for extra compounds in this specific target, should be either in CCD format or a CCP4 restraints file") // cfp::make_option("extra-compounds", po::value<std::string, "File containing residue information for extra compounds in this specific target, should be either in CCD format or a CCP4 restraints file")
cfg::make_option<std::string>("mmcif-dictionary", "Path to the mmcif_pdbx.dic file to use instead of default"), cfp::make_option<std::string>("mmcif-dictionary", "Path to the mmcif_pdbx.dic file to use instead of default"),
cfg::make_option("help,h", "Display help message"), cfp::make_option("help,h", "Display help message"),
cfg::make_option("version", "Print version"), cfp::make_option("version", "Print version"),
cfg::make_option("verbose,v", "verbose output"), cfp::make_option("verbose,v", "verbose output"),
cfg::make_hidden_option<int>("debug,d", "Debug level (for even more verbose output)")); cfp::make_hidden_option<int>("debug,d", "Debug level (for even more verbose output)"));
config.parse(argc, argv); config.parse(argc, argv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment