GithubHelp home page GithubHelp logo

isabella232 / libb64 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from onlinecity/libb64

0.0 0.0 0.0 32 KB

Minimal cmake-based fork of http://libb64.sourceforge.net/

License: Other

C++ 30.34% C 66.61% CMake 3.06%

libb64's Introduction

libb64

My own fork of http://libb64.sourceforge.net/

This library is a stripped-down version of the original libb64.

The build system is CMake (3.1+ only) and the only target being built is the libb64 static library. Code examples has been removed. If you really need them, you can still find them in the original repository.

How to build

Let's assume you have a target foo and you want to link libb64 to it.

  1. Copy the whole repository in the root folder of your CMake-based project

  2. Add the command add_subdirectory(libb64) to your root CMakeLists.txt, before you define your target foo.

  3. Update the CMakeLists.txt file where you define foo with the following lines:

include_directories(${CMAKE_SOURCE_DIR}/libb64/include)

add_executable(foo foo.cpp)    # you already have either this or add_library() if foo is a library

# Define the buffer size for libb64 (MANDATORY!)
# A larger size should be faster, but takes more runtime memory
# Example sizes: 4096, or 65536 or 16777216
target_compile_definitions(foo PRIVATE BUFFERSIZE=16777216)

target_link_libraries(foo b64)

libb64's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.