Try to add tau. Still not working properly.

git-svn-id: https://subversion.assembla.com/svn/qmcdev/trunk@3781 e5b18d87-469d-4833-9cc0-8cdfa06e9491
This commit is contained in:
Jeongnim Kim 2009-04-21 15:49:24 +00:00
parent 5ae29e704d
commit af65faad22
1 changed files with 39 additions and 0 deletions

39
CMake/FindTau.cmake Normal file
View File

@ -0,0 +1,39 @@
#
# this module look for tau (http://www.boost.org) support
# it will define the following values
#
# TAU_INCLUDE_DIR = where TAU.h can be found
#
# May want to define this but seldom required
# TAU_LIBRARY = where boost library can be found (reserved)
#
SET(TRIAL_PATHS
${CMAKE_FIND_ROOT_PATH}
/usr/apps/include
/usr/include
/opt/include
/usr/local/include
)
IF($ENV{TAUROOT} MATCHES "tau")
SET(TAU_HOME $ENV{TAUROOT})
ENDIF($ENV{TAUROOT} MATCHES "tau")
IF($ENV{TAU_HOME} MATCHES "tau")
SET(TAU_HOME $ENV{TAU_HOME})
ENDIF($ENV{TAU_HOME} MATCHES "tau")
SET(TRIAL_PATHS ${TRIAL_PATHS} ${TAU_HOME}/include)
FIND_PATH(TAU_INCLUDE_DIR TAU.h ${TRIAL_PATHS})
IF(TAU_INCLUDE_DIR)
SET(FOUND_TAU 1 CACHE BOOL "Found tau library")
ELSE(TAU_INCLUDE_DIR)
SET(FOUND_TAU 0 CACHE BOOL "Found tau library")
ENDIF(TAU_INCLUDE_DIR)
MARK_AS_ADVANCED(
TAU_INCLUDE_DIR
FOUND_TAU
)