Back to home page

EIC code displayed by LXR

 
 

    


Warning, /eicd/cmake/root.cmake is written in an unsupported language. File is not indexed.

0001 ## Override root's ROOT_GENERATE_DICTIONARY macro to be less error-prone. This
0002 ## is done by only allowing for explicitly speficied header locations/include
0003 ## directories, instead of using the full search path for this module.
0004 function(ROOT_GENERATE_DICTIONARY dictionary)
0005   CMAKE_PARSE_ARGUMENTS(ARG "" "" "LINKDEF;OPTIONS" "" ${ARGN})
0006   ## Get all include directories
0007   get_property(dirs DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
0008   set(extra_includes "")
0009   foreach(dir ${dirs})
0010     set(extra_includes ${extra_includes} "-I${dir}")
0011   endforeach()
0012   ## find and call ROOTCLING
0013   find_program(ROOTCLING rootcling)
0014   add_custom_command(
0015     OUTPUT ${dictionary}.cxx ${dictionary}_rdict.pcm 
0016     COMMAND ${ROOTCLING} -f ${dictionary}.cxx -s ${dictionary}.pcm 
0017     ${ARG_OPTIONS} ${ARG_UNPARSED_ARGUMENTS} ${extra_includes} ${ARG_LINKDEF}
0018     DEPENDS ${includes} ${linkdefs})
0019 endfunction()