Skip to content

Commit

Permalink
Added missing build file
Browse files Browse the repository at this point in the history
  • Loading branch information
Elizabeth Fischer committed Dec 17, 2019
1 parent d06d8e5 commit 67de15f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMake/FindEverytrace.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Input Variables
# EVERYTRACE_ROOT
# Produces:
# EVERYTRACE_LIBRARY
# EVERYTRACE_INCLUDE_DIR


FIND_PATH(EVERYTRACE_INCLUDE_DIR everytrace.h
HINTS ${EVERYTRACE_ROOT}/include)

get_filename_component(EVERYTRACE_ROOT ${EVERYTRACE_INCLUDE_DIR} DIRECTORY)

FIND_LIBRARY(EVERYTRACE_LIBRARY NAMES everytrace
HINTS ${EVERYTRACE_ROOT}/lib)

foreach (VARIANT c cf c_mpi cf_mpi)
FIND_FILE(EVERYTRACE_${VARIANT}_REFADDR NAMES everytrace_${VARIANT}_refaddr.o
HINTS ${EVERYTRACE_ROOT}/lib)
endforeach()

0 comments on commit 67de15f

Please sign in to comment.