File: FindVTUNE.cmake

package info (click to toggle)
vecgeom 1.2.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 24,016 kB
  • sloc: cpp: 88,803; ansic: 6,888; python: 1,035; sh: 582; sql: 538; makefile: 23
file content (19 lines) | stat: -rw-r--r-- 590 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
if ($ENV{VTUNE_DIR})
  set(VTUNE_DIR $ENV{VTUNE_DIR})
endif()

if (NOT VTUNE_DIR)
  set(VTUNE_DIR /opt/intel/vtune_amplifier_xe/)
endif()

set(VTUNE_LIB_DIR ${VTUNE_DIR}/lib64)

find_library(VTUNE_LIBRARIES ittnotify PATHS "${VTUNE_LIB_DIR}" NO_DEFAULT_PATH)

if (VTUNE_LIBRARIES)
   set(VTUNE_FOUND TRUE)
   set(VTUNE_INCLUDE_DIR "${VTUNE_DIR}/include")
   message(STATUS "Found Vtune library ${VTUNE_LIBRARIES}")
else()
   message(STATUS "Vtune library not found; try to set a VTUNE_DIR environment variable to the base installation path or add -DVTUNE_DIR to the cmake command")
endif()