chore: setup Builder

main
mandlm 2024-03-14 11:33:13 +01:00
parent 45bfeca806
commit 3928379d6f
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
4 changed files with 36 additions and 0 deletions

21
Builder/CMakeLists.txt Normal file
View File

@ -0,0 +1,21 @@
cmake_minimum_required(VERSION 3.20)
project(
Builder
VERSION 0.1.0
LANGUAGES CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../cmake")
include(ExportCompileCommands)
include(sccache)
add_executable(Builder main.cpp)
target_compile_features(Builder PUBLIC cxx_std_20)
set_target_properties(
Builder
PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")

4
Builder/bootstrap.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON
ln -s .build/compile_commands.json

3
Builder/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
cmake --build .build

8
Builder/main.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
int main(int argc, char *argv[]) {
std::cout << "Builder" << std::endl;
return EXIT_SUCCESS;
}