- Timestamp:
- 10/29/18 17:04:54 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19321 r19324 107 107 # --------- ROOT ------------- 108 108 109 #IF(EXISTS "$ENV{ROOTSYS}/ROOTConfig.cmake") 110 IF(DEFINED ENV{CMAKE_PREFIX_PATH}) # -- This is if compiled with cmake -- 111 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways: 112 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake 113 # - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT 114 LIST(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}) 115 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS) 116 FIND_PACKAGE(ROOT REQUIRED COMPONENTS Gui Minuit ASImage HistPainter) 117 #---Define useful ROOT functions and macros (e.g. ROOT_GENERATE_DICTIONARY) 109 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways: 110 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake 111 # - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT 112 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake") 113 114 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS) 115 FIND_PACKAGE(ROOT REQUIRED COMPONENTS Gui Minuit ASImage HistPainter) 116 117 IF(NOT DEFINED ROOT_CONFIG_EXECUTABLE) 118 FIND_PACKAGE_MESSAGE(RootFound "Found ROOT: ${ROOT_INCLUDE_DIRS}" "[${ROOT_INCLUDE_DIRS}][${ROOT_LIBRARY_DIR}]") 119 ENDIF() 120 121 #---Define useful ROOT functions and macros (e.g. ROOT_GENERATE_DICTIONARY) 122 IF(DEFINED ROOT_USE_FILE) 123 FIND_PACKAGE_MESSAGE(RootInclude "Setup ROOT: ${ROOT_USE_FILE}" "[${ROOT_USE_FILE}]") 118 124 INCLUDE(${ROOT_USE_FILE}) 119 125 ELSE() 120 # You need to tell CMake where to find the ROOT installation. This can be done in a number of ways:121 # - ROOT built with classic configure/make use the provided $ROOTSYS/etc/cmake/FindROOT.cmake122 # - ROOT built with CMake. Add in CMAKE_PREFIX_PATH the installation prefix for ROOT123 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "$ENV{ROOTSYS}/etc/cmake")124 #---Locate the ROOT package and defines a number of variables (e.g. ROOT_INCLUDE_DIRS)125 FIND_PACKAGE(ROOT REQUIRED COMPONENTS Gui Minuit ASImage HistPainter)126 126 # From RootUseFile.cmake (root 6) 127 127 INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIRS}) … … 132 132 SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}") 133 133 ENDIF() 134 135 IF(NOT DEFINED ROOT_CONFIG_EXECUTABLE)136 FIND_PACKAGE_MESSAGE(RootInc "Found ROOT: ${ROOT_INCLUDE_DIRS}" "[${ROOT_INCLUDE_DIRS}][${ROOT_LIBRARY_DIR}]")137 ENDIF()138 139 134 140 135 # -lGui -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree
Note:
See TracChangeset
for help on using the changeset viewer.