WIP
This commit is contained in:
1 parent
30439acd43
commit
bb80f8fb93
11 files changed
+49
-6
No files matched your search
@@ -5,12 +5,8 @@ add_subdirectory(API)
|
||||
add_subdirectory(Cluster)
|
||||
|
||||
#find_package (Threads REQUIRED) #find pthreads package
|
||||
|
||||
#target_link_libraries (distrins ${CMAKE_THREAD_LIBS_INIT}) #link against pthreads
|
||||
|
||||
add_executable(Distrins main.cpp Core Storage Resolver API Cluster)
|
||||
|
||||
#install(TARGETS myapp DESTINATION bin)
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1,9 @@
|
||||
add_library(Core OBJECT Core.cpp Core.hpp)
|
||||
|
||||
add_library(Core INTERFACE)
|
||||
|
||||
add_library(EventBus OBJECT EventBus.cpp EventBus.hpp)
|
||||
|
||||
#target_sources(Core INTERFACE Core.hpp EventBus)
|
||||
|
||||
target_include_directories(Core INTERFACE .)
|
||||
target_link_libraries(Core INTERFACE EventBus)
|
||||
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
#include "EventBus.hpp"
|
||||
@@ -0,0 +1,3 @@
|
||||
#include "EventBus.hpp"
|
||||
|
||||
EventBus::EventBus() {};
|
||||
@@ -0,0 +1,6 @@
|
||||
class EventBus {
|
||||
public:
|
||||
EventBus();
|
||||
};
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
#target_link_libraries(asio INTERFACE <threads>)
|
||||
|
||||
add_library(Resolver OBJECT Resolver.cpp Resolver.hpp)
|
||||
target_link_libraries(Resolver PRIVATE asio)
|
||||
target_link_libraries(Resolver PRIVATE asio Core)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include "Core/Core.hpp"
|
||||
|
||||
class Resolver
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
#include <iostream>
|
||||
#include "Resolver/Resolver.hpp"
|
||||
#include "Core/EventBus.hpp"
|
||||
|
||||
int main(int args, char **argv) {
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
|
||||
EventBus eventBus();
|
||||
Resolver resolver();
|
||||
|
||||
cout << "Hello there!" << endl;
|
||||
|
||||
Reference in new issue
Block a user