ready to start writing the actual code
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -22,3 +22,4 @@ compile_commands.json
|
||||
*.old
|
||||
|
||||
build/**
|
||||
*.toml
|
||||
|
||||
13
.gitmodules
vendored
13
.gitmodules
vendored
@@ -1,12 +1,13 @@
|
||||
[submodule "fmt"]
|
||||
path = fmt
|
||||
url = https://github.com/fmtlib/fmt
|
||||
[submodule "external/fmt"]
|
||||
path = external/fmt
|
||||
url = https://github.com/fmtlib/fmt
|
||||
[submodule "external/spdlog"]
|
||||
path = external/spdlog
|
||||
url = https://github.com/gabime/spdlog
|
||||
[submodule "external/sqlite"]
|
||||
path = external/sqlite
|
||||
url = https://github.com/sqlite/sqlite
|
||||
[submodule "external/tomlplusplus"]
|
||||
path = external/tomlplusplus
|
||||
url = https://github.com/marzer/tomlplusplus
|
||||
|
||||
[submodule "external/bitsery"]
|
||||
path = external/bitsery
|
||||
url = https://github.com/fraillt/bitsery
|
||||
|
||||
@@ -8,16 +8,19 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
# Dependencies
|
||||
add_subdirectory(external/fmt)
|
||||
add_subdirectory(external/spdlog)
|
||||
|
||||
add_subdirectory(external/tomlplusplus)
|
||||
add_subdirectory(external/bitsery)
|
||||
# Executables
|
||||
add_executable(${PROJECT_NAME}-client src/main-tracker.cpp)
|
||||
add_executable(${PROJECT_NAME}-daemon src/main-daemon.cpp)
|
||||
|
||||
# Common targets
|
||||
set(COMMON_LIBS fmt spdlog)
|
||||
set(COMMON_LIBS fmt spdlog tomlplusplus bitsery)
|
||||
set(COMMON_INCLUDES
|
||||
external/fmt/include
|
||||
external/spdlog/include
|
||||
external/tomlplusplus/include
|
||||
external/bitsery/include/bitsery
|
||||
)
|
||||
|
||||
# Apply common settings
|
||||
|
||||
0
example-host-config.toml
Normal file
0
example-host-config.toml
Normal file
1
external/bitsery
vendored
Submodule
1
external/bitsery
vendored
Submodule
Submodule external/bitsery added at 9bebfd4911
1
external/tomlplusplus
vendored
Submodule
1
external/tomlplusplus
vendored
Submodule
Submodule external/tomlplusplus added at e7aaccca3f
@@ -1,11 +1,14 @@
|
||||
#include "spdlog/spdlog.h"
|
||||
#include <iostream>
|
||||
|
||||
#include <toml++/toml.hpp>
|
||||
// This is the *daemon*
|
||||
|
||||
int main() {
|
||||
std::cout << "Hello from the email tracker's daemon (C++23)\n";
|
||||
spdlog::info("Logger is functional.");
|
||||
|
||||
auto config = toml::parse_file("host-config.toml");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user