forked from WolfgangWaltenberger/rave
-
Notifications
You must be signed in to change notification settings - Fork 2
/
RaveConfig.cmake
55 lines (47 loc) · 1.74 KB
/
RaveConfig.cmake
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
44
45
46
47
48
49
50
51
52
53
54
55
###############################################
# cmake configuration file for Rave
# @author Fabian Moser, HEPHY
###############################################
# do not store find results in cache
SET( Rave_INCLUDE_DIRS Rave_INCLUDE_DIRS-NOTFOUND )
FIND_PATH( Rave_INCLUDE_DIRS
NAMES rave/VertexFactory.h
PATHS /home/walten/install
PATH_SUFFIXES include
NO_DEFAULT_PATH
)
IF( NOT Rave_INCLUDE_DIRS )
MESSAGE( STATUS "Check for Rave: ${Rave_HOME}"
" -- failed to find Rave include directory!!" )
ELSE( NOT Rave_INCLUDE_DIRS )
MARK_AS_ADVANCED( Rave_INCLUDE_DIRS )
ENDIF( NOT Rave_INCLUDE_DIRS )
# do not store find results in cache
SET( Rave_LIB Rave_LIB-NOTFOUND )
FIND_LIBRARY( Rave_LIB
NAMES RaveBase RaveCore RaveVertex RaveFlavorTag RaveVertexKinematics
PATHS /home/walten/install
PATH_SUFFIXES lib
NO_DEFAULT_PATH
)
IF( NOT Rave_LIB )
MESSAGE( STATUS "Check for Rave: ${Rave_HOME}"
" -- failed to find Rave library!!" )
ELSE( NOT Rave_LIB )
MARK_AS_ADVANCED( Rave_LIB )
ENDIF( NOT Rave_LIB )
# set variables and display results
IF( Rave_INCLUDE_DIRS AND Rave_LIB )
SET( Rave_LIBRARIES ${Rave_LIB} )
MARK_AS_ADVANCED( Rave_LIBRARIES )
SET( Rave_DEFINITIONS "-DRAVE -DRaveDllExport= -DWITH_FLAVORTAGGING -DWITH_KINEMATICS" )
MARK_AS_ADVANCED( Rave_DEFINITIONS )
MESSAGE( STATUS "Check for Rave: ${Rave_HOME} -- works" )
ELSE( Rave_INCLUDE_DIRS AND Rave_LIB )
IF( Rave_FIND_REQUIRED )
MESSAGE( FATAL_ERROR "Check for Rave: ${Rave_HOME} -- failed!!" )
ELSE( Rave_FIND_REQUIRED )
MESSAGE( STATUS "Check for Rave: ${Rave_HOME}"
" -- failed!! will skip this package..." )
ENDIF( Rave_FIND_REQUIRED )
ENDIF( Rave_INCLUDE_DIRS AND Rave_LIB )