Skip to content
Snippets Groups Projects
Commit c3d85233 authored by Andre Sailer's avatar Andre Sailer
Browse files

Remove use of GEANT4_INCLUDE_DIRS, use target library instead

parent 377272ac
No related branches found
No related tags found
No related merge requests found
...@@ -51,9 +51,7 @@ new_dd4hep_add_plugin(DDG4Legacy SOURCES legacy/*.cpp ...@@ -51,9 +51,7 @@ new_dd4hep_add_plugin(DDG4Legacy SOURCES legacy/*.cpp
#----------------------------------------------------------------------------------- #-----------------------------------------------------------------------------------
new_dd4hep_add_dictionary( G__DDG4 new_dd4hep_add_dictionary( G__DDG4
SOURCES python/DDG4Dict.C SOURCES python/DDG4Dict.C
DEPENDS DDCore DDParsers DDG4 DEPENDS DDCore DDParsers DDG4 Geant4::Interface
INCLUDES ${Geant4_INCLUDE_DIRS}
DEFINITIONS ${Geant4_DEFINITIONS}
) )
#--------------------------- Plugin library for the simulation framework --------- #--------------------------- Plugin library for the simulation framework ---------
new_dd4hep_add_plugin(DDG4Plugins new_dd4hep_add_plugin(DDG4Plugins
...@@ -68,9 +66,7 @@ if(PYTHONLIBS_FOUND) ...@@ -68,9 +66,7 @@ if(PYTHONLIBS_FOUND)
MESSAGE(STATUS "Python found, creating DDG4Python Dictionary") MESSAGE(STATUS "Python found, creating DDG4Python Dictionary")
new_dd4hep_add_dictionary(G__DDG4Python new_dd4hep_add_dictionary(G__DDG4Python
SOURCES src/python/DDG4Python.C SOURCES src/python/DDG4Python.C
DEPENDS DDCore DDParsers DDG4 ROOT::Core DEPENDS DDCore DDParsers DDG4 ROOT::Core Geant4::Interface
INCLUDES ${Geant4_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS}
DEFINITIONS ${Geant4_DEFINITIONS}
) )
new_dd4hep_add_dictionary(G__DDPython new_dd4hep_add_dictionary(G__DDPython
SOURCES tpython/DDPython.C SOURCES tpython/DDPython.C
......
include ( FindPackageHandleStandardArgs )
find_package(PythonInterp 2 REQUIRED)
find_package(PythonLibs 2 REQUIRED)
if (PYTHONLIBS_FOUND)
get_filename_component(PYTHON_LIBRARY_DIR ${PYTHON_LIBRARIES} PATH)
set(PYTHON_LIBRARY_DIR ${PYTHON_LIBRARY_DIR})
set(PYTHON_LIBRARIES ${PYTHON_LIBRARIES})
set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIRS})
else()
message(STATUS "PYTHON ****NOT**** FOUND")
endif()
find_package_handle_standard_args(PYTHON DEFAULT_MSG PYTHON_INCLUDE_DIR)
mark_as_advanced(PYTHON_FOUND PYTHON_INCLUDE_DIRS)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment