7#include "../utility/utility.hpp"
8#include "../macros.hpp"
13hi_export_module(hikogui.path.cmake_install);
15hi_export
namespace hi {
inline namespace v1 {
18 std::filesystem::path source_dir;
28[[nodiscard]]
inline std::optional<cmake_install>
parse_cmake_install(std::filesystem::path path)
noexcept
30 if (not std::filesystem::exists(path)) {
44 auto const cmake_install_start =
std::string{
"# Install script for directory: "};
45 if (not line.starts_with(cmake_install_start)) {
49 auto source_dir = std::filesystem::path{line.
substr(cmake_install_start.size())};
std::optional< std::filesystem::path > source_dir() noexcept
Get the full path to source code of this executable.
Definition path_location_intf.hpp:219
The HikoGUI namespace.
Definition array_generic.hpp:20
std::basic_string< CharT, Traits > getline(std::basic_istream< CharT, Traits > &in, size_t max_size) noexcept
Get a line from an input string, upto a maximum size.
Definition misc.hpp:112
std::optional< cmake_install > parse_cmake_install(std::filesystem::path path) noexcept
Parse a cmake_install.cmake file.
Definition cmake_install.hpp:28
DOXYGEN BUG.
Definition algorithm_misc.hpp:20
Definition cmake_install.hpp:17