File: Findsofthsm.cmake

package info (click to toggle)
libssh 0.11.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,420 kB
  • sloc: ansic: 100,132; cpp: 421; sh: 186; makefile: 25; javascript: 20; python: 9
file content (36 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (2)
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
34
35
36
# - Try to find softhsm
# Once done this will define
#
#  SOFTHSM_FOUND - system has softhsm
#  SOFTHSM_LIBRARIES - Link these to use softhsm
#
#=============================================================================
#  Copyright (c) 2019 Sahana Prasad <sahana@redhat.com>
#
#  Distributed under the OSI-approved BSD License (the "License");
#  see accompanying file Copyright.txt for details.
#
#  This software is distributed WITHOUT ANY WARRANTY; without even the
#  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#  See the License for more information.
#=============================================================================
#


find_library(SOFTHSM2_LIBRARY
    NAMES
        softhsm2
)

if (SOFTHSM2_LIBRARY)
    set(SOFTHSM_LIBRARIES
        ${SOFTHSM_LIBRARIES}
        ${SOFTHSM2_LIBRARY}
    )
endif (SOFTHSM2_LIBRARY)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(softhsm DEFAULT_MSG SOFTHSM_LIBRARIES)

# show the SOFTHSM_INCLUDE_DIR and SOFTHSM_LIBRARIES variables only in the advanced view
mark_as_advanced(SOFTHSM_LIBRARIES)