Hello, world!
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
build
|
||||
.clangd
|
||||
.zed
|
||||
@@ -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)
|
||||
@@ -0,0 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
void helloWorld(void);
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <iostream>
|
||||
|
||||
void helloWorld(void) {
|
||||
std::cout << "Hello, world!" << std::endl;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
add_executable(xrbx_test
|
||||
test.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(xrbx_test
|
||||
PRIVATE
|
||||
xrbx
|
||||
)
|
||||
@@ -0,0 +1,6 @@
|
||||
#include "xrbx/xrbx.h"
|
||||
|
||||
int main() {
|
||||
helloWorld();
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user