got some libs in

This commit is contained in:
2025-10-23 20:21:14 -05:00
parent 0d01e09ded
commit 37e7685f77
79 changed files with 42 additions and 22 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

12
.gitmodules vendored Normal file
View File

@@ -0,0 +1,12 @@
[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

View File

@@ -5,27 +5,24 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Uncomment these when you add submodules # Dependencies
# add_subdirectory(external/some-lib) add_subdirectory(external/fmt)
# add_subdirectory(external/another-lib) add_subdirectory(external/spdlog)
add_executable(${PROJECT_NAME}-client # Executables
src/main-tracker.cpp 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_INCLUDES
external/fmt/include
external/spdlog/include
) )
add_executable(${PROJECT_NAME}-daemon # Apply common settings
src/main-daemon.cpp foreach(target ${PROJECT_NAME}-client ${PROJECT_NAME}-daemon)
) target_link_libraries(${target} PRIVATE ${COMMON_LIBS})
target_include_directories(${target} PRIVATE ${COMMON_INCLUDES})
# Link submodules (uncomment as needed) endforeach()
# target_link_libraries(${PROJECT_NAME}
# PRIVATE
# some-lib
# another-lib
# )
# target_include_directories(${PROJECT_NAME}
# PRIVATE
# external/some-lib/include
# )

1
external/fmt vendored Submodule

Submodule external/fmt added at 9395ef5fcb

1
external/spdlog vendored Submodule

Submodule external/spdlog added at 486b55554f

1
external/sqlite vendored Submodule

Submodule external/sqlite added at 4043096408

View File

@@ -1,7 +1,11 @@
#include "spdlog/spdlog.h"
#include <iostream> #include <iostream>
// This is the *daemon*
int main() { int main() {
std::cout << "Hello from MyProject (C++23)\n"; std::cout << "Hello from the email tracker's daemon (C++23)\n";
spdlog::info("Logger is functional.");
return 0; return 0;
} }

View File

@@ -1,7 +1,11 @@
#include "spdlog/spdlog.h"
#include <iostream> #include <iostream>
// This is the client
int main() { int main() {
std::cout << "Hello from MyProject (C++23)\n"; std::cout << "Hello from the email tracker's client.(C++23)\n";
spdlog::info("Logger is functional");
return 0; return 0;
} }