File: FindQUIP.cmake

package info (click to toggle)
lammps 20250204%2Bdfsg.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 474,368 kB
  • sloc: cpp: 1,060,070; python: 27,785; ansic: 8,956; f90: 7,254; sh: 6,044; perl: 4,171; fortran: 2,442; xml: 1,714; makefile: 1,352; objc: 238; lisp: 188; yacc: 58; csh: 16; awk: 14; tcl: 6; javascript: 2
file content (27 lines) | stat: -rw-r--r-- 743 bytes parent folder | download | duplicates (3)
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
# - Find quip
# Find the native QUIP libraries.
#
#  QUIP_LIBRARIES    - List of libraries of the QUIP package
#  QUIP_FOUND        - True if QUIP library was found.
#

find_library(QUIP_LIBRARY NAMES quip)

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set QUIP_FOUND to TRUE
# if all listed variables are TRUE

find_package_handle_standard_args(QUIP DEFAULT_MSG QUIP_LIBRARY)

# Copy the results to the output variables and target.
if(QUIP_FOUND)
  set(QUIP_LIBRARIES ${QUIP_LIBRARY})

  if(NOT TARGET QUIP::QUIP)
    add_library(QUIP::QUIP UNKNOWN IMPORTED)
    set_target_properties(QUIP::QUIP PROPERTIES
      IMPORTED_LOCATION "${QUIP_LIBRARY}")
  endif()
endif()

mark_as_advanced(QUIP_LIBRARY)