Depend on asiofi

This commit is contained in:
Dennis Klein
2018-08-08 16:31:57 +02:00
committed by Dennis Klein
parent d9edcad845
commit 4d7a1c81c6
5 changed files with 31 additions and 95 deletions

View File

@@ -59,14 +59,36 @@ endif()
if(BUILD_NANOMSG_TRANSPORT)
find_package2(PRIVATE nanomsg REQUIRED)
set(PROJECT_nanomsg_VERSION 1.1.3) # Once upstream releases 1.1.5, we should bump again and use version check
find_package2(PRIVATE msgpack VERSION 3.1.0 REQUIRED)
endif()
if(BUILD_OFI_TRANSPORT)
find_package2(PRIVATE OFI VERSION 1.6.0 REQUIRED COMPONENTS fi_sockets fi_verbs)
find_package2(PRIVATE Protobuf VERSION 3.4.0 REQUIRED)
find_package2(PRIVATE asiofi VERSION 0.0.0 REQUIRED)
find_package2(PRIVATE OFI VERSION ${asiofi_OFI_VERSION} COMPONENTS ${asiofi_OFI_COMPONENTS} REQUIRED)
endif()
if(BUILD_NANOMSG_TRANSPORT OR BUILD_OFI_TRANSPORT)
find_package2(PRIVATE msgpack VERSION 3.1.0 REQUIRED)
endif()
if(BUILD_FAIRMQ)
set(_components container program_options thread system filesystem regex date_time signals)
if(asiofi_FOUND)
if(${asiofi_Boost_VERSION} VERSION_GREATER 1.64)
set(_version ${asiofi_Boost_VERSION})
endif()
list(APPEND _components ${asiofi_Boost_COMPONENTS})
list(REMOVE_DUPLICATES _components)
else()
set(_version 1.64)
endif()
find_package2(PUBLIC Boost VERSION ${_version} REQUIRED
COMPONENTS ${_components}
)
find_package2(PUBLIC FairLogger VERSION 1.2.0 REQUIRED)
find_package2(PRIVATE ZeroMQ VERSION 4.1.5 REQUIRED)
endif()
if(BUILD_DDS_PLUGIN)
find_package2(PRIVATE DDS VERSION 2.2 REQUIRED)
endif()
@@ -226,6 +248,8 @@ if(PROJECT_PACKAGE_DEPENDENCIES)
elseif(${dep} STREQUAL msgpack)
get_target_property(msgpack_include msgpackc-cxx INTERFACE_INCLUDE_DIRECTORIES)
get_filename_component(prefix ${msgpack_include}/.. ABSOLUTE)
elseif(${dep} STREQUAL asiofi)
set(prefix ${asiofi_ROOT})
elseif(${dep} STREQUAL OFI)
get_filename_component(prefix ${${dep}_INCLUDE_DIRS}/.. ABSOLUTE)
elseif(${dep} STREQUAL nanomsg)