SimDist/packages/geant4
diff -u -r1.24 -r1.25
--- Makefile.in 3 Aug 2012 01:38:31 -0000 1.24
+++ Makefile.in 9 Apr 2013 00:21:50 -0000 1.25
@@ -1,4 +1,4 @@
-# $Header: /cvs/lcd/SimDist/packages/geant4/Makefile.in,v 1.24 2012/08/03 01:38:31 jeremy Exp $
+# $Header: /cvs/lcd/SimDist/packages/geant4/Makefile.in,v 1.25 2013/04/09 00:21:50 jeremy Exp $
# package build settings
include ../../build/package.gmk
@@ -51,6 +51,24 @@
echo G4SYSTEM=$(G4SYSTEM) ; \
echo OGLHOME=$(OGLHOME) ; :
+cmake_config:
+ @echo "configuring Geant4 with CMake ..."; \
+ cd $(G4INSTALL); \
+ mkdir build; \
+ cd build; \
+ pwd; \
+ $(CMAKE) -DCMAKE_INSTALL_PREFIX=$(G4INSTALL) -DGEANT4_USE_SYSTEM_EXPAT=OFF ..
+
+cmake_compile:
+ @echo "compiling Geant4 with CMake ..."; \
+ cd $(G4INSTALL)/build; \
+ $(MAKE)
+
+cmake_install:
+ @echo "installing Geant4 with CMake ..."; \
+ cd $(G4INSTALL)/build; \
+ $(MAKE) install
+
# test geant4 installation by trying to compile one of the examples
#test:
# @cd $(PACKAGE_BASEDIR)/examples/novice/N01/ && export G4WORKDIR=`pwd` && $(MAKE) all;