Skip to content

Commit

Permalink
Updated readme and fixed code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hhawley committed May 23, 2024
1 parent 9578c07 commit 4216b1b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
*debug*
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.14...3.22)
# Note: update this to your new project's name and version
project(
SBCBinaryFormat
VERSION 0.5.0
VERSION 0.1.1
LANGUAGES CXX C
)

Expand Down
2 changes: 1 addition & 1 deletion cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To install this library, there are two options:
2. Clone this github repository anywhere in your project and in your
"CMakeLists.txt" add a line called `add_subdirectory
(LOCATION_OF_THIS_LIBRARY)`. Then, in `target_link_libraries` add
`RedDigitizer++::RedDigitizer++`. Done!
`SBCBinaryFormat::SBCBinaryFormat`. Done!

# Examples

Expand Down
2 changes: 1 addition & 1 deletion cpp/include/SBCBinaryFormat/Utilities.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ concept is_arithmetic_ptr = std::is_arithmetic_v<
std::remove_pointer_t<T>>> and not std::is_pointer_v<T>;

template<typename... T>
concept is_arithmetic_ptr_unpack = requires(T x) {
concept is_arithmetic_ptr_unpack = requires(T... x) {
(... and is_arithmetic_ptr<T>);
};

Expand Down
12 changes: 6 additions & 6 deletions cpp/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ include(cmake/CPM.cmake)

CPMAddPackage("gh:onqtam/doctest@2.4.8")
CPMAddPackage("gh:TheLartians/Format.cmake@1.7.3")

if(TEST_INSTALLED_VERSION)
find_package(SBCBinaryFormat REQUIRED)
else()
CPMAddPackage(NAME SBCBinaryFormat SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..)
endif()
#
#if(TEST_INSTALLED_VERSION)
# find_package(SBCBinaryFormat REQUIRED)
#else()
# CPMAddPackage(NAME SBCBinaryFormat SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/..)
#endif()

# ---- Create binary ----

Expand Down
2 changes: 1 addition & 1 deletion cpp/test/source/basic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// my includes
#include "SBCBinaryFormat/Reader.hpp"
#include "SBCBinaryFormat/Writers.hpp"
#include "SBCBinaryFormat/Writer.hpp"

using namespace SBC::BinaryFormat;

Expand Down

0 comments on commit 4216b1b

Please sign in to comment.