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.
46 lines
716 B
46 lines
716 B
4 years ago
|
#pragma once
|
||
|
|
||
4 years ago
|
static const char *hello_world = &R"lit(
|
||
4 years ago
|
#include <iostream>
|
||
|
|
||
|
int %s() {
|
||
|
std::cout << "Hello World!\n";
|
||
|
return 0;
|
||
|
}
|
||
4 years ago
|
)lit"[1]; // skip initial newline
|
||
4 years ago
|
|
||
4 years ago
|
static const char *cmake_toml = &R"lit(
|
||
4 years ago
|
[cmake]
|
||
4 years ago
|
version = "3.15"
|
||
4 years ago
|
# subdirs = []
|
||
4 years ago
|
# build-dir = ""
|
||
4 years ago
|
# cpp-flags = []
|
||
|
# c-flags = []
|
||
|
# link-flags = []
|
||
|
# generator = ""
|
||
|
# arguments = []
|
||
|
|
||
|
[project]
|
||
|
name = "%s"
|
||
|
version = "0.1.0"
|
||
|
|
||
|
# [find-package]
|
||
|
|
||
|
# [fetch-content]
|
||
|
|
||
4 years ago
|
# [options]
|
||
|
|
||
4 years ago
|
[target.%s]
|
||
4 years ago
|
type = "%s"
|
||
4 years ago
|
sources = ["src/*.cpp"]
|
||
4 years ago
|
include-directories = ["include"]
|
||
4 years ago
|
# alias = ""
|
||
4 years ago
|
# compile-features = []
|
||
|
# compile-definitions = []
|
||
|
# link-libraries = []
|
||
4 years ago
|
|
||
|
[[install]]
|
||
|
%s = ["%s"]
|
||
|
destination = "${CMAKE_INSTALL_PREFIX}/%s"
|
||
4 years ago
|
)lit"[1]; // skip initial newline
|