Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/DDParsersStandAlone/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
0002 set ( CMAKE_MODULE_PATH      ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/../cmake ) 
0003 #
0004 include ( DD4hepBuild )
0005 #
0006 
0007 #------------- set the default installation directory to be the source directory
0008 
0009 IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
0010   SET( CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR} CACHE PATH
0011        "install prefix path  - overwrite with -D CMAKE_INSTALL_PREFIX = ..."
0012        FORCE )
0013  MESSAGE(STATUS "CMAKE_INSTALL_PREFIX is ${CMAKE_INSTALL_PREFIX} - overwrite with -D CMAKE_INSTALL_PREFIX" )
0014 ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
0015 #
0016 #---Options-------------------------------------------------------------------------
0017 option(DD4HEP_USE_CXX14   "Build DD4hep using c++14" OFF)
0018 option(CMAKE_MACOSX_RPATH "Build with rpath on macos" ON)
0019 #
0020 #-----------------------------------------------------------------------------------------------------
0021 #
0022 #  project version (Major,minor,patch)
0023 #  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0024 #  !! Use the same version numbers as in DDSegmentation/CMakeLists.txt    !!
0025 #  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0026 #
0027 # project version
0028 SET( DD4hep_VERSION_MAJOR 0  )
0029 SET( DD4hep_VERSION_MINOR 24 )
0030 SET( DD4hep_VERSION_PATCH 0  )
0031 
0032 dd4hep_set_version(DD4hep
0033   MAJOR ${DD4hep_VERSION_MAJOR}
0034   MINOR ${DD4hep_VERSION_MINOR}
0035   PATCH ${DD4hep_VERSION_PATCH} )
0036 
0037 dd4hep_configure_output( OUTPUT "${PROJECT_BINARY_DIR}" INSTALL "${CMAKE_INSTALL_PREFIX}" )
0038 #
0039 # Include ROOT
0040 #
0041 find_package ( ROOT REQUIRED COMPONENTS Geom GenVector)
0042 find_package ( ROOT REQUIRED)
0043 include(${ROOT_USE_FILE})
0044 message ( STATUS "ROOT_VERSION: ${ROOT_VERSION}" )
0045 
0046 #---------------------------------------------------------------------------------------------------
0047 dd4hep_set_compiler_flags()
0048 #
0049 include(DD4hep)
0050 include(DD4hepMacros) 
0051 #---Packages------------------------------------------------------------------------
0052 add_subdirectory(DDParsers)
0053 #
0054 #---Configuration-------------------------------------------------------------------
0055 #-----------------------------------------------------------------------------------
0056 display_std_variables()
0057 
0058 ##############################################################################
0059 # generate and install following configuration files
0060 #dd4hep_generate_package_configuration_files( DD4hepConfig.cmake )
0061 if(APPLE)
0062   SET ( ENV{DD4HEP_LIBRARY_PATH} $ENV{DYLD_LIBRARY_PATH} )
0063 else()
0064   SET ( ENV{DD4HEP_LIBRARY_PATH} ${LD_LIBRARY_PATH} )
0065   SET ( DD4HEP_LIBRARY_PATH ${LD_LIBRARY_PATH} )
0066 endif()
0067 
0068 if(APPLE)
0069   fill_dd4hep_library_path()
0070   message(STATUS "DD4HEP_LIBRARY_PATH= $ENV{DD4HEP_LIBRARY_PATH}")
0071 endif()