QwGeant4
CMakeLists.txt File Reference

Functions

 include_directories (${PROJECT_SOURCE_DIR}/include ${Geant4_INCLUDE_DIR}) set(Hadr00_SCRIPTS hadr00_all_hp.in hadr00_all.in hadr00.in hadr00.out n.mac pi.mac pn.mac vis.mac) configure_file($
 

Function Documentation

include_directories (   ${PROJECT_SOURCE_DIR}/include ${Geant4_INCLUDE_DIR})

Definition at line 26 of file Extensions/HadronicCrossSection/CMakeLists.txt.

26  {PROJECT_SOURCE_DIR}/include
27  ${Geant4_INCLUDE_DIR})
28 file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc)
29 file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh)
30 
31 #----------------------------------------------------------------------------
32 # Add the executable, and link it to the Geant4 libraries
33 #
34 add_executable(Hadr00 Hadr00.cc ${sources} ${headers})
35 target_link_libraries(Hadr00 ${Geant4_LIBRARIES} )
36 
37 #----------------------------------------------------------------------------
38 # Copy all scripts to the build directory, i.e. the directory in which we
39 # build Hadr00. This is so that we can run the executable directly because it
40 # relies on these scripts being in the current working directory.
41 #
42 set(Hadr00_SCRIPTS
43  hadr00_all_hp.in hadr00_all.in hadr00.in hadr00.out n.mac pi.mac pn.mac vis.mac
44  )
45 
46 foreach(_script ${Hadr00_SCRIPTS})
47  configure_file(
48  ${PROJECT_SOURCE_DIR}/${_script}