Difference: Geant4Tutorial (3 vs. 4)

Revision 42014-11-05 - JohnIdarraga

Line: 1 to 1
 
META TOPICPARENT name="JohnIdarraga"
Line: 6 to 6
  http://physics.nist.gov/PhysRefData/Star/Text/PSTAR.html
Added:
>
>

ROOT integration using cmake

Download the file FindROOT.cmake file available at the bottom of this page (wget it for instance). In the CMakeLists.txt! file related to a particular project include these lines right after the project name

include(FindROOT.cmake)

set(INCLUDE_DIRECTORIES
   ${ROOT_INCLUDE_DIR} 
)
include_directories( ${INCLUDE_DIRECTORIES})

set(LINK_DIRECTORIES
   ${ROOT_LIBRARY_DIR}
)
link_directories( ${LINK_DIRECTORIES} )

Then change the following line (a few lines down). Include the ${ROOT_LIBRARIES} part

target_link_libraries(exampleXX ${Geant4_LIBRARIES} ${ROOT_LIBRARIES})
 

Cmake line

Changed:
<
<
$ cmake -DGeant4_DIR=/media/simulation/geant4.9.6-install/lib/Geant4-9.6.2/ -DCMAKE_BUILD_TYPE=Debug ../N0X
>
>
$cmake -G"Eclipse CDT4 - Unix Makefiles" -DGeant4_DIR=/media/geant4/sw/geant4.10.00.p02-install/lib/Geant4-10.0.2/ ../B2
 

Save Hits data

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback