Allow specifying lokimq libs/includes externally
Allows: cmake -DLOKIMQ_LIBRARIES=/path/to/liblokimq.a -DLOKIMQ_INCLUDE_DIRS=/path/to/lokimq/inc This is mainly for internal use for the lokinet+lokinet-gui bundled build on macos so that the gui subproject doesn't rebuild its own sodium/libzmq/lokimq but can rather just use the parent lokinet's libs.
This commit is contained in:
parent
186ed5a38b
commit
69d2af54e2
|
@ -33,6 +33,11 @@ if(BUILD_STATIC_DEPS)
|
|||
endif()
|
||||
include(StaticBuild)
|
||||
add_subdirectory(external/loki-mq)
|
||||
elseif(LOKIMQ_LIBRARIES) # Private option for the macos bundled gui build
|
||||
add_library(lokimq INTERFACE)
|
||||
target_link_libraries(lokimq INTERFACE ${LOKIMQ_LIBRARIES})
|
||||
target_include_directories(lokimq INTERFACE ${LOKIMQ_INCLUDE_DIRS})
|
||||
add_library(lokimq::lokimq ALIAS lokimq)
|
||||
else()
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(lokimq REQUIRED liblokimq>=1.2.2 IMPORTED_TARGET)
|
||||
|
|
Loading…
Reference in New Issue