feat(CMake): BASEN_SHARED_LIBS

This commit is contained in:
2024-11-10 20:04:33 +03:00
parent 62d651fc6c
commit 19ad6abf83
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,10 @@ project(libbasen
set(CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-result -O3")
if(DEFINED BASEN_SHARED_LIBS)
set(BUILD_SHARED_LIBS ${BASEN_SHARED_LIBS})
endif()
set(OBJS
base58
base64

View File

@ -44,6 +44,7 @@ sudo make uni USRDIR=(Your installation dir)
For using as dependency only (without cli tool, test, coverage, docs)
```
set(BASEN_SHARED_LIBS ON)
include(FetchContent)
FetchContent_Declare(
basen