Warning, /DD4hep/DDParsers/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #=================================================================================
0002 #
0003 # AIDA Detector description implementation
0004 #---------------------------------------------------------------------------------
0005 # Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0006 # All rights reserved.
0007 #
0008 # For the licensing terms see $DD4hepINSTALL/LICENSE.
0009 # For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0010 #
0011 #=================================================================================
0012
0013 dd4hep_print("|++> Will build DDParsers")
0014
0015
0016 # set the default job pool to use, is unset below, although this only applies for this directory
0017 SET(CMAKE_JOB_POOL_COMPILE HIGH_MEM_POOL)
0018
0019 file(GLOB DDParsers_SOURCES src/Parsers/*.cpp src/Evaluator/*.cpp)
0020 file(GLOB DDParsers_SPIRIT_SOURCES src/Spirit/*.cpp)
0021
0022 add_library(DDParsers ${DDParsers_SOURCES} ${DDParsers_SPIRIT_SOURCES})
0023 add_library(DD4hep::DDParsers ALIAS DDParsers)
0024
0025 target_compile_definitions(DDParsers INTERFACE BOOST_SPIRIT_USE_PHOENIX_V3)
0026 IF( DD4HEP_USE_GEANT4_UNITS )
0027 target_compile_definitions(DDParsers PUBLIC DD4HEP_USE_GEANT4_UNITS=1)
0028 ENDIF()
0029
0030 target_include_directories(DDParsers
0031 PUBLIC
0032 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
0033 $<INSTALL_INTERFACE:include>
0034 )
0035
0036 target_link_libraries(DDParsers PUBLIC ROOT::Core ROOT::GenVector Boost::boost ${XML_LIBRARIES})
0037
0038 set_target_properties(DDParsers PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
0039 install(DIRECTORY include/Parsers include/Evaluator DESTINATION include)
0040 install(TARGETS DDParsers ${OPTIONAL_TARGETS} EXPORT DD4hep
0041 LIBRARY DESTINATION lib
0042 ARCHIVE DESTINATION lib)
0043 # Unset job pool
0044 SET(CMAKE_JOB_POOL_COMPILE)