-
Notifications
You must be signed in to change notification settings - Fork 7
/
clupatraConfig.cmake.in
58 lines (50 loc) · 2.17 KB
/
clupatraConfig.cmake.in
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
56
57
58
###############################################
# cmake configuration file for @PROJECT_NAME@
# @author Jan Engels, DESY
###############################################
SET( @PROJECT_NAME@_FOUND FALSE )
MARK_AS_ADVANCED( @PROJECT_NAME@_FOUND )
# do not store find results in cache
SET( @PROJECT_NAME@_INCLUDE_DIR @PROJECT_NAME@_INCLUDE_DIR-NOTFOUND )
FIND_PATH( @PROJECT_NAME@_INCLUDE_DIR
NAMES @[email protected]
PATHS @CMAKE_INSTALL_PREFIX@
PATH_SUFFIXES include
NO_DEFAULT_PATH
)
IF( NOT @PROJECT_NAME@_INCLUDE_DIR )
MESSAGE( STATUS "Check for @PROJECT_NAME@: ${@PROJECT_NAME@_HOME}"
" -- failed to find @PROJECT_NAME@ include directory!!" )
ELSE( NOT @PROJECT_NAME@_INCLUDE_DIR )
MARK_AS_ADVANCED( @PROJECT_NAME@_INCLUDE_DIR )
ENDIF( NOT @PROJECT_NAME@_INCLUDE_DIR )
# do not store find results in cache
SET( @PROJECT_NAME@_LIB @PROJECT_NAME@_LIB-NOTFOUND )
FIND_LIBRARY( @PROJECT_NAME@_LIB
NAMES @PROJECT_NAME@
PATHS @CMAKE_INSTALL_PREFIX@
PATH_SUFFIXES lib
NO_DEFAULT_PATH
)
IF( NOT @PROJECT_NAME@_LIB )
MESSAGE( STATUS "Check for @PROJECT_NAME@: ${@PROJECT_NAME@_HOME}"
" -- failed to find @PROJECT_NAME@ library!!" )
ELSE( NOT @PROJECT_NAME@_LIB )
MARK_AS_ADVANCED( @PROJECT_NAME@_LIB )
ENDIF( NOT @PROJECT_NAME@_LIB )
# set variables and display results
IF( @PROJECT_NAME@_INCLUDE_DIR AND @PROJECT_NAME@_LIB )
SET( @PROJECT_NAME@_FOUND TRUE )
SET( @PROJECT_NAME@_INCLUDE_DIRS ${@PROJECT_NAME@_INCLUDE_DIR} )
SET( @PROJECT_NAME@_LIBRARY_DIRS "@CMAKE_INSTALL_PREFIX@/lib" )
SET( @PROJECT_NAME@_LIBRARIES ${@PROJECT_NAME@_LIB} )
MARK_AS_ADVANCED( @PROJECT_NAME@_INCLUDE_DIRS @PROJECT_NAME@_LIBRARY_DIRS @PROJECT_NAME@_LIBRARIES )
MESSAGE( STATUS "Check for @PROJECT_NAME@: ${@PROJECT_NAME@_HOME} -- works" )
ELSE( @PROJECT_NAME@_INCLUDE_DIR AND @PROJECT_NAME@_LIB )
IF( @PROJECT_NAME@_FIND_REQUIRED )
MESSAGE( FATAL_ERROR "Check for @PROJECT_NAME@: ${@PROJECT_NAME@_HOME} -- failed!!" )
ELSE( @PROJECT_NAME@_FIND_REQUIRED )
MESSAGE( STATUS "Check for @PROJECT_NAME@: ${@PROJECT_NAME@_HOME}"
" -- failed!! will skip this package..." )
ENDIF( @PROJECT_NAME@_FIND_REQUIRED )
ENDIF( @PROJECT_NAME@_INCLUDE_DIR AND @PROJECT_NAME@_LIB )