File: FindJellyfish.cmake

package info (click to toggle)
rapmap 0.12.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,388 kB
  • sloc: cpp: 38,057; ansic: 2,754; sh: 209; python: 82; makefile: 15
file content (26 lines) | stat: -rw-r--r-- 1,097 bytes parent folder | download | duplicates (12)
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
###############################################################################
# Find Jellyfish 
#
# This sets the following variables:
# JELLYFISH_FOUND - True if Jellyfish was found.
# JELLYFISH_INCLUDE_DIRS - Directories containing the Jellyfish include files.
# JELLYFISH_DEFINITIONS - Compiler flags for Jellyfish.

find_path(JELLYFISH_INCLUDE_DIR jellyfish
	HINTS "${JELLYFISH_ROOT}/include" "$ENV{JELLYFISH_ROOT}/include" "/usr/include" "$ENV{PROGRAMFILES}/jellyfish/include")

set(JELLYFISH_INCLUDE_DIRS ${JELLYFISH_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
#message("Required Jellyfish version ${Jellyfish_FIND_VERSION}")
find_package_handle_standard_args(Jellyfish 
                                 DEFAULT_MSG 
                                 FOUND_VAR JELLYFISH_FOUND 
                                  REQUIRED_VARS JELLYFISH_INCLUDE_DIR 
                                  VERSION_VAR Jellyfish_FOUND_VERSION)

mark_as_advanced(JELLYFISH_INCLUDE_DIR)

if(JELLYFISH_FOUND)
    message(STATUS "Jellyfish found (include: ${JELLYFISH_INCLUDE_DIRS})")
endif(JELLYFISH_FOUND)