Skip to content

Commit

Permalink
install fmt and nlohmann/json dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMiller- committed Jan 11, 2024
1 parent 3bace47 commit 37c2864
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg install catch2
./vcpkg install fmt
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg install catch2
./vcpkg install fmt
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
vcpkg install boost-algorithm:x64-windows
vcpkg install boost-date-time:x64-windows
vcpkg install catch2:x64-windows
vcpkg install fmt:x64-windows
vcpkg install nlohmann-json:x64-windows
vcpkg integrate install
- name: Create Build Environment
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![codecov](https://codecov.io/gh/MichaelMiller-/sec21/branch/master/graph/badge.svg?token=f7vlTsHZWl)](https://codecov.io/gh/MichaelMiller-/sec21) [![CodeQL](https://github.com/MichaelMiller-/sec21/actions/workflows/codeql.yml/badge.svg)](https://github.com/MichaelMiller-/sec21/actions/workflows/codeql.yml)

**sec21** is a collection of useful functions and classes and the boilerplate for a lot of my projects.
**sec21** is a collection of useful functions and classes, also the boilerplate for a lot of my projects.

## Documentation
See the [Wiki](https://github.com/MichaelMiller-/sec21/wiki) for the full documentation, examples, operational details and other information.
Expand Down
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
find_package(Catch2 CONFIG REQUIRED)
find_package(Boost 1.70 REQUIRED)
find_package(fmt REQUIRED)
find_package(nlohmann_json CONFIG REQUIRED)

## speed up the compile-time process
add_library(catch_main STATIC catch_main.cpp)
Expand All @@ -15,6 +17,8 @@ function(test filename)
target_link_libraries(${test_project_name} PRIVATE catch_main)
target_link_libraries(${test_project_name} PRIVATE sec21::sec21)
target_link_libraries(${test_project_name} PRIVATE enable_compiler_warnings)
target_link_libraries(${test_project_name} PRIVATE fmt::fmt-header-only)
target_link_libraries(${test_project_name} PRIVATE nlohmann_json nlohmann_json::nlohmann_json)

add_test(
NAME ${test_project_name}
Expand Down

0 comments on commit 37c2864

Please sign in to comment.