Skip to content

Commit

Permalink
CMake helper
Browse files Browse the repository at this point in the history
  • Loading branch information
tm604 committed Jun 3, 2015
1 parent 3eb23a0 commit 6844809
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions FindASIOProtocols.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
SET(_ASIO_PROTOCOLS_REQUIRED_VARS ASIO_PROTOCOLS_INCLUDE_DIR ASIO_PROTOCOLS_LIBRARY )

FIND_PATH(
ASIO_PROTOCOLS_INCLUDE_DIR
NAMES net/amqp.h
HINTS ${ASIO_PROTOCOLS_DIR}/include
)

FIND_LIBRARY(
ASIO_PROTOCOLS_LIBRARY
NAMES asio-protocols
HINTS ${ASIO_PROTOCOLS_DIR}/lib
)

SET(ASIO_PROTOCOLS_PROCESS_INCLUDES ASIO_PROTOCOLS_INCLUDE_DIR)
SET(ASIO_PROTOCOLS_PROCESS_LIBS ASIO_PROTOCOLS_LIBRARY)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
ASIO_PROTOCOLS
DEFAULT_MSG
${_ASIO_PROTOCOLS_REQUIRED_VARS}
)

0 comments on commit 6844809

Please sign in to comment.