Attachment 'FindLCIO.cmake'
Download 1 ##############################################################################
2 # cmake configuration file for LCIO
3 #
4 # requires:
5 # MacroCheckPackageLibs.cmake for checking package libraries
6 #
7 # returns following variables:
8 #
9 # LCIO_FOUND : set to TRUE if LCIO found
10 # if FIND_PACKAGE called with REQUIRED and COMPONENTS arguments
11 # LCIO_FOUND is only set to TRUE if ALL components are also found
12 # if REQUIRED is NOT set components may or may not be available
13 #
14 # LCIO_ROOT : path to this LCIO installation
15 # LCIO_VERSION : package version
16 # LCIO_LIBRARIES : list of LCIO libraries (NOT including COMPONENTS)
17 # LCIO_INCLUDE_DIRS : list of paths to be used with INCLUDE_DIRECTORIES
18 # LCIO_LIBRARY_DIRS : list of paths to be used with LINK_DIRECTORIES
19 # LCIO_COMPONENT_LIBRARIES : list of LCIO component libraries
20 # LCIO_${COMPONENT}_FOUND : set to TRUE or FALSE for each library
21 # LCIO_${COMPONENT}_LIBRARY : path to individual libraries
22 # LCIO_${COMPONENT}_LIB_DEPENDS : individual library dependencies
23 #
24 # @author Jan Engels, Desy
25 ##############################################################################
26
27 SET( LCIO_ROOT "/home/airqui/Programs/ilcinstall-v01-17-09/v01-17-09/lcio/v02-05" )
28 SET( LCIO_VERSION "2.4.3" )
29
30
31 # ---------- include dirs -----------------------------------------------------
32 # do not store find results in cache
33 SET( LCIO_INCLUDE_DIRS LCIO_INCLUDE_DIRS-NOTFOUND )
34 MARK_AS_ADVANCED( LCIO_INCLUDE_DIRS )
35
36 FIND_PATH( LCIO_INCLUDE_DIRS
37 NAMES EVENT/MCParticle.h
38 PATHS ${LCIO_ROOT}/include
39 NO_DEFAULT_PATH
40 )
41
42
43
44 # ---------- libraries --------------------------------------------------------
45 #INCLUDE( "/MacroCheckPackageLibs.cmake" )
46 INCLUDE( "/home/airqui/Programs/ilcinstall-v01-17-09/v01-17-09/lcio/v02-05/cmake/MacroCheckPackageLibs.cmake" )
47
48 # only standard libraries should be passed as arguments to CHECK_PACKAGE_LIBS
49 # additional components are set by cmake in variable PKG_FIND_COMPONENTS
50 # first argument should be the package name
51 CHECK_PACKAGE_LIBS( LCIO lcio sio )
52
53
54
55
56 # ---------- libraries dependencies -------------------------------------------
57 # this sets LCIO_${COMPONENT}_LIB_DEPENDS variables
58 INCLUDE( "${LCIO_ROOT}/lib/cmake/LCIOLibDeps.cmake" )
59
60
61
62 ## ------- zlib dependency ---------------------------------------
63 # better to install zlib together with lcio libraries
64 #FIND_PACKAGE( ZLIB QUIET )
65 #SET( LCIO_DEPENDS_LIBRARIES ${ZLIB_LIBRARIES} )
66 #INCLUDE( "/MacroExportPackageDeps.cmake" )
67 #EXPORT_PACKAGE_DEPENDENCIES( LCIO ) # append ZLIB_LIBRARIES to LCIO_LIBRARIES unless FIND_PACKAGE_SKIP_DEPENDENCIES is set
68 ## ---------------------------------------------------------------
69
70
71
72
73 # ---------- final checking ---------------------------------------------------
74 INCLUDE( FindPackageHandleStandardArgs )
75 # set LCIO_FOUND to TRUE if all listed variables are TRUE and not empty
76 # LCIO_COMPONENT_VARIABLES will be set if FIND_PACKAGE is called with REQUIRED argument
77 FIND_PACKAGE_HANDLE_STANDARD_ARGS( LCIO DEFAULT_MSG LCIO_ROOT LCIO_INCLUDE_DIRS LCIO_LIBRARIES ${LCIO_COMPONENT_VARIABLES} ) #ZLIB_LIBRARIES )
78
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.