From 1329a062b4ab81f197658480371840bb77a5200d Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 1 Mar 2024 19:43:13 +0800 Subject: [PATCH] feat update sled --- .gitignore | 4 ++++ .gitmodules | 3 +++ 3rdparty/sled | 1 + CMakeLists.txt | 12 ++++++++++++ README.md | 0 src/main.cc | 7 +++++++ 6 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 160000 3rdparty/sled create mode 100644 CMakeLists.txt create mode 100644 README.md create mode 100644 src/main.cc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..253e16b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +out/ +build/ +.cache/ +compile_commands.json diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..8f766e8 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "3rdparty/sled"] + path = 3rdparty/sled + url = https://code.uocat.com/tqcq/sled.git diff --git a/3rdparty/sled b/3rdparty/sled new file mode 160000 index 0000000..3d5039e --- /dev/null +++ b/3rdparty/sled @@ -0,0 +1 @@ +Subproject commit 3d5039ed9521b4e4ee5a376274eb13ca41bca758 diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..975d5ac --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,12 @@ +cmake_minimum_required(VERSION 3.10) +project(meta LANGUAGES CXX VERSION 0.1.0) + +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +add_subdirectory(3rdparty/sled EXCLUDE_FROM_ALL) + +add_executable(meta "src/main.cc") + +target_link_libraries(meta PRIVATE sled) diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/src/main.cc b/src/main.cc new file mode 100644 index 0000000..88ccc2d --- /dev/null +++ b/src/main.cc @@ -0,0 +1,7 @@ +#include +const char* kTag = "main"; + +int main(int argc, char* argv[]) { + LOGI(kTag, ""); + return 0; +}