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
|
*.old
|
||||||
|
|
||||||
build/**
|
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"]
|
[submodule "external/fmt"]
|
||||||
path = external/fmt
|
path = external/fmt
|
||||||
url = https://github.com/fmtlib/fmt
|
url = https://github.com/fmtlib/fmt
|
||||||
[submodule "external/spdlog"]
|
[submodule "external/spdlog"]
|
||||||
path = external/spdlog
|
path = external/spdlog
|
||||||
url = https://github.com/gabime/spdlog
|
url = https://github.com/gabime/spdlog
|
||||||
[submodule "external/sqlite"]
|
[submodule "external/tomlplusplus"]
|
||||||
path = external/sqlite
|
path = external/tomlplusplus
|
||||||
url = https://github.com/sqlite/sqlite
|
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
|
# Dependencies
|
||||||
add_subdirectory(external/fmt)
|
add_subdirectory(external/fmt)
|
||||||
add_subdirectory(external/spdlog)
|
add_subdirectory(external/spdlog)
|
||||||
|
add_subdirectory(external/tomlplusplus)
|
||||||
|
add_subdirectory(external/bitsery)
|
||||||
# Executables
|
# Executables
|
||||||
add_executable(${PROJECT_NAME}-client src/main-tracker.cpp)
|
add_executable(${PROJECT_NAME}-client src/main-tracker.cpp)
|
||||||
add_executable(${PROJECT_NAME}-daemon src/main-daemon.cpp)
|
add_executable(${PROJECT_NAME}-daemon src/main-daemon.cpp)
|
||||||
|
|
||||||
# Common targets
|
# Common targets
|
||||||
set(COMMON_LIBS fmt spdlog)
|
set(COMMON_LIBS fmt spdlog tomlplusplus bitsery)
|
||||||
set(COMMON_INCLUDES
|
set(COMMON_INCLUDES
|
||||||
external/fmt/include
|
external/fmt/include
|
||||||
external/spdlog/include
|
external/spdlog/include
|
||||||
|
external/tomlplusplus/include
|
||||||
|
external/bitsery/include/bitsery
|
||||||
)
|
)
|
||||||
|
|
||||||
# Apply common settings
|
# 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 "spdlog/spdlog.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <toml++/toml.hpp>
|
||||||
// This is the *daemon*
|
// This is the *daemon*
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
std::cout << "Hello from the email tracker's daemon (C++23)\n";
|
std::cout << "Hello from the email tracker's daemon (C++23)\n";
|
||||||
spdlog::info("Logger is functional.");
|
spdlog::info("Logger is functional.");
|
||||||
|
|
||||||
|
auto config = toml::parse_file("host-config.toml");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user