This repository was archived by the owner on Aug 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +27
-6
lines changed
Expand file tree Collapse file tree 2 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 build :
13- runs-on : debian -latest
13+ runs-on : ubuntu -latest
1414
1515 steps :
1616 - name : Checkout repository
1717 uses : actions/checkout@v4
1818
1919 - name : Install dependencies
20- run : sudo apt-get install -y cmake nlohmann-json -dev libcurl4-openssl-dev
20+ run : sudo apt-get install -y cmake nlohmann-json3 -dev libcurl4-openssl-dev
2121
2222 - name : Create build directory
2323 run : mkdir build
2929 run : cmake --build build
3030
3131 - name : Run tests
32- run : ctest --test-dir build
32+ run : ctest --test-dir build
Original file line number Diff line number Diff line change 11# spring-core-cpp
22C++ version of the spring core repo. Used to be able to call the spring boot apis in c++ projects
33
4+ > Version ** 1.0.0**
5+
46## Packages needed
57
68### 1. Install nlohmann/json from the Package Manager
79
810#### Debian
911``` bash
1012sudo apt update
11- sudo apt install nlohmann-json -dev
13+ sudo apt install nlohmann-json3 -dev
1214```
1315
1416#### macOS
@@ -34,8 +36,27 @@ brew install curl
3436``` bash
3537mkdir build && cd build
3638cmake ..
37- cmake --build . --config Release
38- cmake --install . --prefix /path/to/install
39+ make install
40+ ```
41+
42+ ## How to use
43+
44+ ``` cmake
45+ cmake_minimum_required(VERSION 3.15)
46+ project(NewProject VERSION 1.0.0 LANGUAGES CXX)
47+
48+ # Set the C++ standard
49+ set(CMAKE_CXX_STANDARD 17)
50+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
51+
52+ # Find the FunixProductionsCore package
53+ find_package(FunixProductionsCore REQUIRED)
54+
55+ # Add the executable
56+ add_executable(NewProject main.cpp)
57+
58+ # Link the FunixProductionsCore library
59+ target_link_libraries(NewProject FunixProductions::FunixProductionsCore)
3960```
4061
4162## Env variables
You can’t perform that action at this time.
0 commit comments