重构项目,现支持多线程操作
This commit is contained in:
33
README.md
33
README.md
@ -1,35 +1,12 @@
|
||||
# exPKG
|
||||
|
||||
## useage
|
||||
> ```c++
|
||||
> #include "EXPKG/EXPKG.h"
|
||||
>
|
||||
> int main(int argc, char** argv) {
|
||||
> CommandArgs args{ argc, argv};
|
||||
>
|
||||
> PKG::EXPKG decompress(args);
|
||||
> PKG::EXPKG decompress("path/to/file");
|
||||
> PKG::EXPKG decompress("path/to/file", "path/to/output/directory");
|
||||
>
|
||||
> return 0;
|
||||
> }
|
||||
> ```bash
|
||||
> expkg /path/to/file.pkg|file.mpkg [output/path]
|
||||
>```
|
||||
|
||||
## Cmake
|
||||
>
|
||||
> use as subdirectory
|
||||
>
|
||||
> ```cmake
|
||||
> add_subdirectory(path/to/expkg)
|
||||
>
|
||||
>add_executable(${TARGET} ${SRC_SOURCE})
|
||||
>target_link_libraries(${TARGET} expkg-static)
|
||||
>
|
||||
> # or use dll by
|
||||
> # target_link_libraries(${TARGET} expkg-shared)
|
||||
>```
|
||||
> then
|
||||
> ```bash
|
||||
build
|
||||
```bash
|
||||
> cmake -B build
|
||||
> cmake --build build --config Release -j8
|
||||
>```
|
||||
>```
|
||||
|
||||
Reference in New Issue
Block a user