got some libs in
This commit is contained in:
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.
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
@@ -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
|
||||||
+17
-20
@@ -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
Submodule external/fmt added at 9395ef5fcb
+1
Submodule external/spdlog added at 486b55554f
+1
Submodule external/sqlite added at 4043096408
+5
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user