File: FindSOCKET%2B%2B.cmake

package info (click to toggle)
gdcm 3.0.24-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,856 kB
  • sloc: cpp: 203,722; ansic: 76,471; xml: 48,131; python: 3,473; cs: 2,308; java: 1,629; lex: 1,290; sh: 334; php: 128; makefile: 97
file content (33 lines) | stat: -rw-r--r-- 930 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# - Find socket++
# Find the native socket++ headers and libraries.
# This module defines
#  SOCKETXX_INCLUDE_DIRS - the json include directory
#  SOCKETXX_LIBRARIES    - the libraries needed to use json
#  SOCKETXX_FOUND        - system has the json library
#
#  Copyright (c) 2013 Mathieu Malaterre <mathieu.malaterre@gmail.com>
#
#  Redistribution and use is allowed according to the terms of the New
#  BSD license.
#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.

find_path(SOCKETXX_INCLUDE_DIR socket++.h
  /usr/include/socket++
  )
find_library(SOCKETXX_LIBRARY NAMES Papyrus3)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SOCKETXX DEFAULT_MSG
  SOCKETXX_LIBRARY
  SOCKETXX_INCLUDE_DIR
)

if(SOCKETXX_FOUND)
  set(SOCKETXX_LIBRARIES ${SOCKETXX_LIBRARY})
  set(SOCKETXX_INCLUDE_DIRS ${SOCKETXX_INCLUDE_DIR})
endif()

mark_as_advanced(
  SOCKETXX_LIBRARY
  SOCKETXX_INCLUDE_DIR
)