Hello, world!

This commit is contained in:
2026-08-04 17:59:25 +02:00
commit 6e3590d532
6 changed files with 42 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
build
.clangd
.zed
+17
View File
@@ -0,0 +1,17 @@
cmake_minimum_required(VERSION 3.15)
project(xrbx LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(xrbx STATIC
src/xrbx.cpp
)
target_include_directories(xrbx
PUBLIC
${PROJECT_SOURCE_DIR}/include
)
add_subdirectory(tests)
+3
View File
@@ -0,0 +1,3 @@
#pragma once
void helloWorld(void);
+5
View File
@@ -0,0 +1,5 @@
#include <iostream>
void helloWorld(void) {
std::cout << "Hello, world!" << std::endl;
}
+8
View File
@@ -0,0 +1,8 @@
add_executable(xrbx_test
test.cpp
)
target_link_libraries(xrbx_test
PRIVATE
xrbx
)
+6
View File
@@ -0,0 +1,6 @@
#include "xrbx/xrbx.h"
int main() {
helloWorld();
return 0;
}