You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
986 B
37 lines
986 B
#pragma once
|
|
|
|
#include <map>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace cmkr::cmake {
|
|
|
|
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;
|
|
};
|
|
|
|
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::map<std::string, std::string> packages;
|
|
std::map<std::string, std::map<std::string, std::string>> contents;
|
|
std::vector<Bin> binaries;
|
|
CMake(const std::string &path, bool build);
|
|
};
|
|
|
|
} // namespace cmkr::cmake
|