From f39d44890acddca1dccf83a8b1d3ebc402003db4 Mon Sep 17 00:00:00 2001 From: blue Date: Sun, 26 Mar 2023 22:12:23 +0300 Subject: [PATCH] some fixes in README --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 073be29..b81524c 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,30 @@ If you're using LMDBAL as a system library you probably have no control over it' ``` find_package(lmdbal) if (LMDBAL_FOUND) - target_include_directories(yourTarget PRIVATE {LMDBAL_INCLUDE_DIRS}) + target_include_directories(yourTarget PRIVATE ${LMDBAL_INCLUDE_DIRS}) target_link_libraries(yourTarget PRIVATE LMDBAL::LMDBAL) endif() ``` #### As an embeded subproject -//TODO + +If you're using LMDBAL as a embeded library you might want to control it's build options, for example you can run +``` +set(BUILD_STATIC ON) +``` + +before including the library in your project. This will set the library to be build in a static mode. + +Then you want to run something like this +``` +add_subdirectory(pathTo/yourEmbedded/libraries/lmdbal) +add_library(LMDBAL::LMDBAL ALIAS LMDBAL) +... + +target_link_libraries(yourTarget PRIVATE LMDBAL::LMDBAL) +``` + +The headers are added as `PUBLIC` so you might not even need to `target_link_libraries` them ### Building