镜像自GitHub仓库
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Andrei Yankovich 4d871007ff
Update README.md
3 years ago
crc update crc16 License 3 years ago
unit-test Fix compilation issues with MinGW32 3 years ago
.gitignore added support of the cmake build system 3 years ago
CMakeLists.txt added support tests cases 3 years ago
Makefile.comm crc16/crc32/crc64 10 years ago
README.md Update README.md 3 years ago

README.md

crc

crc16/crc32/crc64

Build

git clone https://github.com/gityf/crc.git
mkdir build
cd build
cmake .. -DBUILD_SHARED_LIBS=1 -DCRC_TESTS=1
make 

Testing

./crc_test 
[ RUN      ] ==== Test CRC8Test.BasicTest
[ RUN      ] ==== Test CRC16Test.BasicTest
[ RUN      ] ==== Test CRC32Test.BasicTest
[ RUN      ] ==== Test CRC64Test.BasicTest
[ RUN      ] ==== Test CRC8PolyTest.BasicTest
[ RUN      ] ==== Test CRC16PolyTest.BasicTest
[ RUN      ] ==== Test CRC32PolyTest.BasicTest
[ PASS     ] ==== PASSED 7 tests
[ NOPASS   ] ==== ERROR 0 tests

Include

Cmake build system

add_subdirectory(crc)

target_link_libraries(${PROJECT_NAME} PUBLIC crc)