← Back to team overview

simhadteam team mailing list archive

[Branch ~simhadteam/simulationshadrontherapie/G4LPCbasedProject] Rev 9: Ajout de la recherche du fichier CMakeG4LPC.cmake dans CMakeLists.txt.

 

------------------------------------------------------------
revno: 9
committer: Daniel Cussol <cussol@xxxxxxxx>
branch nick: G4LPCbasedProject
timestamp: Tue 2013-04-30 13:09:18 +0200
message:
  Ajout de la recherche du fichier CMakeG4LPC.cmake dans CMakeLists.txt.
modified:
  CMakeLists.txt


--
lp:simulationshadrontherapie/g4lpcbasedproject
https://code.launchpad.net/~simhadteam/simulationshadrontherapie/G4LPCbasedProject

Your team Simulateurs pour la Hadronthérapie is subscribed to branch lp:simulationshadrontherapie/g4lpcbasedproject.
To unsubscribe from this branch go to https://code.launchpad.net/~simhadteam/simulationshadrontherapie/G4LPCbasedProject/+edit-subscription
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt	2013-04-30 11:01:07 +0000
+++ CMakeLists.txt	2013-04-30 11:09:18 +0000
@@ -4,5 +4,11 @@
 
 set(module G4LPCbasedProject)
 
-include($ENV{G4WORKDIR}/MesApplis/G4LPCnew/CMakeG4LPC.cmake)
+ execute_process(
+       COMMAND  find $ENV{G4WORKDIR}/ -name "CMakeG4LPC.cmake"
+       OUTPUT_VARIABLE G4LPC_cmake
+       OUTPUT_STRIP_TRAILING_WHITESPACE
+ )
+
+include(${G4LPC_cmake})