Compare commits
No commits in common. 'cmake' and 'dev' have entirely different histories.
@ -1,3 +1,3 @@ |
|||||||
build |
test/test |
||||||
.vscode |
test/*.txt |
||||||
example |
example |
@ -0,0 +1,16 @@ |
|||||||
|
{ |
||||||
|
"configurations": [ |
||||||
|
{ |
||||||
|
"name": "Linux", |
||||||
|
"includePath": [ |
||||||
|
"${workspaceFolder}/**" |
||||||
|
], |
||||||
|
"defines": [], |
||||||
|
"compilerPath": "/usr/bin/gcc", |
||||||
|
"cStandard": "c17", |
||||||
|
"cppStandard": "gnu++17", |
||||||
|
"intelliSenseMode": "linux-gcc-x64" |
||||||
|
} |
||||||
|
], |
||||||
|
"version": 4 |
||||||
|
} |
@ -0,0 +1,76 @@ |
|||||||
|
{ |
||||||
|
"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" |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,28 @@ |
|||||||
|
{ |
||||||
|
"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" |
||||||
|
} |
@ -1,31 +0,0 @@ |
|||||||
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) |
|
||||||
# |
|
@ -1,4 +0,0 @@ |
|||||||
add_executable(asynco_test main.cpp) |
|
||||||
|
|
||||||
# Linkaj test sa Asynco bibliotekom |
|
||||||
target_link_libraries(asynco_test asynco Boost::system) |
|
@ -0,0 +1 @@ |
|||||||
|
g++ test.cpp ../src/* -o test |
@ -1,10 +1,10 @@ |
|||||||
#define NUM_OF_RUNNERS 4 |
// // #define NUM_OF_RUNNERS 2
|
||||||
|
|
||||||
#include "asynco.hpp" |
#include "../lib/asynco.hpp" |
||||||
#include "trigger.hpp" |
#include "../lib/trigger.hpp" |
||||||
#include "filesystem.hpp" |
#include "../lib/filesystem.hpp" |
||||||
#include "timers.hpp" |
#include "../lib/timers.hpp" |
||||||
#include "define.hpp" |
#include "../lib/define.hpp" |
||||||
|
|
||||||
using namespace marcelb::asynco; |
using namespace marcelb::asynco; |
||||||
using namespace triggers; |
using namespace triggers; |
Loading…
Reference in new issue