File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.16 )
2+ project (bbfmux)
3+
4+ set (CMAKE_CXX_STANDARD 17)
5+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
6+
7+ find_package (Threads REQUIRED )
8+
9+ add_executable (bbfmux
10+ src/bbfenc.cpp
11+ src/libbbf.cpp
12+ src/xxhash.c
13+ )
14+
15+ target_link_libraries (bbfmux PRIVATE Threads::Threads )
16+
17+ if (WIN32 )
18+ target_compile_options (bbfmux PRIVATE -municode )
19+ endif ()
20+
21+ install (TARGETS bbfmux DESTINATION bin)
Original file line number Diff line number Diff line change @@ -13,10 +13,21 @@ Bound Book Format (.bbf) is a high-performance binary container designed specifi
1313## Getting Started
1414
1515### Prerequisites
16- - C++17 compliant compiler (GCC/Clang/MSVC)
16+ - C++17 compliant compiler (GCC/Clang/MSVC), and optionally CMake
1717- [ xxHash] ( https://github.com/Cyan4973/xxHash ) library
1818
1919### Compilation
20+
21+ #### CMake
22+
23+ ``` bash
24+ cmake -B build
25+ cmake --build build
26+ sudo cmake --install build
27+ ```
28+
29+ #### Manual
30+
2031Linux
2132``` bash
2233g++ -std=c++17 bbfenc.cpp libbbf.cpp xxhash.c -o bbfmux -pthread
You can’t perform that action at this time.
0 commit comments