Depend on ZeroMQ via CMake package

This commit is contained in:
Dennis Klein
2018-04-23 17:38:47 +02:00
parent 96e326cf3c
commit 7bb4b0625e
7 changed files with 18 additions and 135 deletions

View File

@@ -28,7 +28,7 @@ find_package_handle_standard_args(nanomsg
if(NOT TARGET nanomsg AND nanomsg_FOUND)
add_library(nanomsg SHARED IMPORTED)
set_target_properties(nanomsg PROPERTIES
IMPORTED_LOCATION ${NANOMSG_LIBRARY_SHARED}
INTERFACE_INCLUDE_DIRECTORIES ${NANOMSG_INCLUDE_DIR}
IMPORTED_LOCATION ${nanomsg_LIBRARY_SHARED}
INTERFACE_INCLUDE_DIRECTORIES ${nanomsg_INCLUDE_DIR}
)
endif()