CMake/project reorg
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.26.0)
|
||||
project(gtest_Graphics VERSION 0.1.0 LANGUAGES C CXX)
|
||||
|
||||
add_executable(SmartStreamTest main.cpp)
|
||||
target_link_libraries(SmartStreamTest NBCore)
|
||||
@@ -0,0 +1,25 @@
|
||||
|
||||
#include <exception>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
|
||||
#include "SmartStreams.hpp"
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
auto test = nb::TerminalColor(9, 2030);
|
||||
|
||||
std::cout << test;
|
||||
|
||||
std::ofstream file;
|
||||
file.open("test.txt");
|
||||
if (file.is_open()) {
|
||||
file << test;
|
||||
}
|
||||
file.close();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user