File: FindXKaapi.cmake

package info (click to toggle)
vtk6 6.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 118,532 kB
  • ctags: 138,251
  • sloc: cpp: 1,443,749; ansic: 113,395; python: 72,383; tcl: 46,998; xml: 8,127; yacc: 4,525; java: 4,239; perl: 3,108; lex: 1,694; sh: 1,093; asm: 471; makefile: 95; objc: 17
file content (43 lines) | stat: -rw-r--r-- 1,243 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
34
35
36
37
38
39
40
41
42
43
# Try to find (x)Kaapi
# Once done, this will define
#
#  XKAAPI_FOUND - system has (x)Kaapi
#  XKAAPI_INCLUDE_DIRS - the (x)Kaapi include directories
#  XKAAPI_LIBRARIES - link these to use (x)Kaapi

set(XKAAPI_HOME $ENV{XKAAPI_HOME} CACHE PATH "Path to the (x)Kaapi install dir")

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
  pkg_check_modules(PC_KAAPI QUIET kaapi++)
endif()

find_path(XKAAPI_INCLUDE_DIR kaapi++
  HINTS
  ${XKAAPI_HOME}/include
  ${PC_KAAPI_INCLUDEDIR}
  ${PC_KAAPI_INCLUDE_DIRS}
)

find_library(KAAPI_LIBRARY kaapi
  HINTS
  ${XKAAPI_HOME}/lib
  ${PC_KAAPI_LIBDIR}
  ${PC_KAAPI_LIBRARY_DIRS}
)
find_library(XKAAPI_LIBRARY kaapi++
  HINTS
  ${XKAAPI_HOME}/lib
  ${PC_KAAPI_LIBDIR}
  ${PC_KAAPI_LIBRARY_DIRS}
)

set(XKAAPI_LIBRARIES ${XKAAPI_LIBRARY} ${KAAPI_LIBRARY})
set(XKAAPI_INCLUDE_DIRS ${XKAAPI_INCLUDE_DIR})

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set XKAAPI_FOUND to TRUE if all listed variables are TRUE
find_package_handle_standard_args(XKaapi DEFAULT_MSG XKAAPI_LIBRARIES XKAAPI_INCLUDE_DIRS)

mark_as_advanced(XKAAPI_INCLUDE_DIR XKAAPI_LIBRARY KAAPI_LIBRARY KAAPI_C_LIBRARY KAAPI_FORTRAN_LIBRARY)
set(XKAAPI_LIBRARIES ${XKAAPI_LIBRARIES} ${CMAKE_THREAD_LIBS})