Skip to content
Snippets Groups Projects
Commit 8217ff99 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Allow include of G4 headers with or without 'Geant4/' prefix

parent 49247288
No related branches found
No related tags found
1 merge request!80Allow include of G4 headers with or without 'Geant4/' prefix
......@@ -7,6 +7,11 @@ find_package(GaudiProject)
gaudi_project(Geant4 v106r2p4
DATA Geant4Files VERSION ${GEANT4FILES_VERSION})
# Compatibility with standard Geant4 installation
file(APPEND "${CMAKE_CONFIG_OUTPUT_DIRECTORY}/${CMAKE_PROJECT_NAME}PlatformConfig.cmake"
"\nset(${CMAKE_PROJECT_NAME}_INCLUDE_DIRS \${_dir}/include/Geant4 \${${CMAKE_PROJECT_NAME}_INCLUDE_DIRS})\n"
)
# FIXME: hack for compatibility with CMT build
file(WRITE ${CMAKE_BINARY_DIR}/dummy.cpp "")
link_directories(${CMAKE_INSTALL_PREFIX}/lib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment