Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
|
1853318016 | 1 month ago |
@ -1,3 +1,3 @@ |
|||||||
test/test |
build |
||||||
test/*.txt |
.vscode |
||||||
example |
example |
@ -1,16 +0,0 @@ |
|||||||
{ |
|
||||||
"configurations": [ |
|
||||||
{ |
|
||||||
"name": "Linux", |
|
||||||
"includePath": [ |
|
||||||
"${workspaceFolder}/**" |
|
||||||
], |
|
||||||
"defines": [], |
|
||||||
"compilerPath": "/usr/bin/gcc", |
|
||||||
"cStandard": "c17", |
|
||||||
"cppStandard": "gnu++17", |
|
||||||
"intelliSenseMode": "linux-gcc-x64" |
|
||||||
} |
|
||||||
], |
|
||||||
"version": 4 |
|
||||||
} |
|
@ -1,76 +0,0 @@ |
|||||||
{ |
|
||||||
"files.associations": { |
|
||||||
"iostream": "cpp", |
|
||||||
"functional": "cpp", |
|
||||||
"thread": "cpp", |
|
||||||
"chrono": "cpp", |
|
||||||
"ostream": "cpp", |
|
||||||
"condition_variable": "cpp", |
|
||||||
"array": "cpp", |
|
||||||
"atomic": "cpp", |
|
||||||
"cwchar": "cpp", |
|
||||||
"deque": "cpp", |
|
||||||
"unordered_map": "cpp", |
|
||||||
"vector": "cpp", |
|
||||||
"exception": "cpp", |
|
||||||
"initializer_list": "cpp", |
|
||||||
"iosfwd": "cpp", |
|
||||||
"mutex": "cpp", |
|
||||||
"new": "cpp", |
|
||||||
"ratio": "cpp", |
|
||||||
"stdexcept": "cpp", |
|
||||||
"tuple": "cpp", |
|
||||||
"type_traits": "cpp", |
|
||||||
"utility": "cpp", |
|
||||||
"future": "cpp", |
|
||||||
"*.ipp": "cpp", |
|
||||||
"bitset": "cpp", |
|
||||||
"algorithm": "cpp", |
|
||||||
"string": "cpp", |
|
||||||
"string_view": "cpp", |
|
||||||
"fstream": "cpp", |
|
||||||
"cctype": "cpp", |
|
||||||
"clocale": "cpp", |
|
||||||
"cmath": "cpp", |
|
||||||
"csignal": "cpp", |
|
||||||
"cstdarg": "cpp", |
|
||||||
"cstddef": "cpp", |
|
||||||
"cstdio": "cpp", |
|
||||||
"cstdlib": "cpp", |
|
||||||
"cstring": "cpp", |
|
||||||
"ctime": "cpp", |
|
||||||
"cwctype": "cpp", |
|
||||||
"any": "cpp", |
|
||||||
"bit": "cpp", |
|
||||||
"*.tcc": "cpp", |
|
||||||
"codecvt": "cpp", |
|
||||||
"compare": "cpp", |
|
||||||
"complex": "cpp", |
|
||||||
"concepts": "cpp", |
|
||||||
"cstdint": "cpp", |
|
||||||
"list": "cpp", |
|
||||||
"map": "cpp", |
|
||||||
"set": "cpp", |
|
||||||
"iterator": "cpp", |
|
||||||
"memory": "cpp", |
|
||||||
"memory_resource": "cpp", |
|
||||||
"numeric": "cpp", |
|
||||||
"optional": "cpp", |
|
||||||
"random": "cpp", |
|
||||||
"system_error": "cpp", |
|
||||||
"iomanip": "cpp", |
|
||||||
"istream": "cpp", |
|
||||||
"limits": "cpp", |
|
||||||
"numbers": "cpp", |
|
||||||
"semaphore": "cpp", |
|
||||||
"sstream": "cpp", |
|
||||||
"stop_token": "cpp", |
|
||||||
"streambuf": "cpp", |
|
||||||
"cinttypes": "cpp", |
|
||||||
"typeindex": "cpp", |
|
||||||
"typeinfo": "cpp", |
|
||||||
"variant": "cpp", |
|
||||||
"coroutine": "cpp", |
|
||||||
"source_location": "cpp" |
|
||||||
} |
|
||||||
} |
|
@ -1,28 +0,0 @@ |
|||||||
{ |
|
||||||
"tasks": [ |
|
||||||
{ |
|
||||||
"type": "cppbuild", |
|
||||||
"label": "C/C++: gcc build active file", |
|
||||||
"command": "/usr/bin/g++", |
|
||||||
"args": [ |
|
||||||
"-fdiagnostics-color=always", |
|
||||||
"-g", |
|
||||||
"${file}", |
|
||||||
"-o", |
|
||||||
"${fileDirname}/${fileBasenameNoExtension}" |
|
||||||
], |
|
||||||
"options": { |
|
||||||
"cwd": "${fileDirname}" |
|
||||||
}, |
|
||||||
"problemMatcher": [ |
|
||||||
"$gcc" |
|
||||||
], |
|
||||||
"group": { |
|
||||||
"kind": "build", |
|
||||||
"isDefault": true |
|
||||||
}, |
|
||||||
"detail": "Task generated by Debugger." |
|
||||||
} |
|
||||||
], |
|
||||||
"version": "2.0.0" |
|
||||||
} |
|
@ -0,0 +1,31 @@ |
|||||||
|
cmake_minimum_required(VERSION 3.10) |
||||||
|
|
||||||
|
project(Asynco) |
||||||
|
|
||||||
|
# Postavi verziju projekta |
||||||
|
set(CMAKE_CXX_STANDARD 17) |
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON) |
||||||
|
|
||||||
|
# Pronađi Boost biblioteku (ako nije uobičajeni direktorijum, postavi put) |
||||||
|
find_package(Boost REQUIRED COMPONENTS system) |
||||||
|
|
||||||
|
# Dodaj direktorijume sa zaglavljima |
||||||
|
include_directories(lib) |
||||||
|
|
||||||
|
# Dodaj biblioteku |
||||||
|
add_library(asynco STATIC |
||||||
|
src/engine.cpp |
||||||
|
src/timers.cpp |
||||||
|
) |
||||||
|
|
||||||
|
# Linkaj Asynco biblioteku sa Boost-om |
||||||
|
target_link_libraries(asynco Boost::system) |
||||||
|
|
||||||
|
# Dodaj testove |
||||||
|
add_subdirectory(test) |
||||||
|
|
||||||
|
|
||||||
|
# Instaliraj biblioteku |
||||||
|
# install(TARGETS asynco DESTINATION lib) |
||||||
|
# install(FILES lib/asynco.hpp lib/define.hpp lib/engine.hpp lib/filesystem.hpp lib/timers.hpp lib/trigger.hpp DESTINATION include/asynco) |
||||||
|
# |
@ -0,0 +1,4 @@ |
|||||||
|
add_executable(asynco_test main.cpp) |
||||||
|
|
||||||
|
# Linkaj test sa Asynco bibliotekom |
||||||
|
target_link_libraries(asynco_test asynco Boost::system) |
@ -1 +0,0 @@ |
|||||||
g++ test.cpp ../src/* -o test |
|
@ -1,10 +1,10 @@ |
|||||||
// // #define NUM_OF_RUNNERS 2
|
#define NUM_OF_RUNNERS 4 |
||||||
|
|
||||||
#include "../lib/asynco.hpp" |
#include "asynco.hpp" |
||||||
#include "../lib/trigger.hpp" |
#include "trigger.hpp" |
||||||
#include "../lib/filesystem.hpp" |
#include "filesystem.hpp" |
||||||
#include "../lib/timers.hpp" |
#include "timers.hpp" |
||||||
#include "../lib/define.hpp" |
#include "define.hpp" |
||||||
|
|
||||||
using namespace marcelb::asynco; |
using namespace marcelb::asynco; |
||||||
using namespace triggers; |
using namespace triggers; |
Loading…
Reference in new issue