mirror of
https://github.com/build-cpp/cmkr
synced 2026-06-08 13:22:55 +00:00
update readme
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace cmkr::cmake {
|
||||
|
||||
struct Option {
|
||||
std::string name;
|
||||
std::string comment;
|
||||
bool val;
|
||||
};
|
||||
|
||||
struct Package {
|
||||
std::string name;
|
||||
std::string version;
|
||||
bool required = true;
|
||||
std::vector<std::string> components;
|
||||
};
|
||||
|
||||
struct Bin {
|
||||
std::string name;
|
||||
std::string type;
|
||||
std::vector<std::string> sources;
|
||||
std::vector<std::string> include_dirs;
|
||||
std::vector<std::string> features;
|
||||
std::vector<std::string> defines;
|
||||
std::vector<std::string> link_libs;
|
||||
std::string alias;
|
||||
};
|
||||
|
||||
struct Test {
|
||||
std::string name;
|
||||
std::string cmd;
|
||||
std::vector<std::string> args;
|
||||
};
|
||||
|
||||
struct CMake {
|
||||
std::string cmake_version = "3.14";
|
||||
std::string bin_dir = "bin";
|
||||
std::string generator;
|
||||
std::vector<std::string> subdirs;
|
||||
std::vector<std::string> cppflags;
|
||||
std::vector<std::string> cflags;
|
||||
std::vector<std::string> linkflags;
|
||||
std::vector<std::string> gen_args;
|
||||
std::vector<std::string> build_args;
|
||||
std::string proj_name;
|
||||
std::string proj_version;
|
||||
std::vector<Option> options;
|
||||
std::vector<Package> packages;
|
||||
std::map<std::string, std::map<std::string, std::string>> contents;
|
||||
std::vector<Bin> binaries;
|
||||
std::vector<Test> tests;
|
||||
CMake(const std::string &path, bool build);
|
||||
};
|
||||
|
||||
} // namespace cmkr::cmake
|
||||
Reference in New Issue
Block a user