ready to start writing the actual code

This commit is contained in:
2025-10-23 20:49:21 -05:00
parent bac6febd16
commit a4b23fc57c
8 changed files with 19 additions and 9 deletions

1
.gitignore vendored
View File

@@ -22,3 +22,4 @@ compile_commands.json
*.old
build/**
*.toml

13
.gitmodules vendored
View File

@@ -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

BIN
1x1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

View File

@@ -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
View File

1
external/bitsery vendored Submodule

Submodule external/bitsery added at 9bebfd4911

1
external/tomlplusplus vendored Submodule

Submodule external/tomlplusplus added at e7aaccca3f

View File

@@ -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;
}