Skip to content
Snippets Groups Projects
Commit ca4be898 authored by Marvin Richter's avatar Marvin Richter
Browse files

global change environment name from CMAKE_SOURCE_DIR to TOP_DIR

parent b2c23bfa
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ set(PACKAGE_NAME ErrLogger)
MESSAGE("cmake installation for package: " ${PACKAGE_NAME})
include_directories (
${CMAKE_SOURCE_DIR}
${TOP_DIR}
${log4cpp_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
......
......@@ -5,7 +5,7 @@ set(PACKAGE_NAME Event)
MESSAGE("cmake installation for package: " ${PACKAGE_NAME})
include_directories (
${CMAKE_SOURCE_DIR}
${TOP_DIR}
${log4cpp_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)
......
......@@ -32,7 +32,7 @@ int main()
ErrLogger::instance()->setLevel(log4cpp::Priority::INFO);
std::vector<std::string> fileNames;
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string hepMCFile(theSourcePath+"/Event/HepMCEvt.out");
......
......@@ -165,7 +165,7 @@ TMatrixGeneral::~TMatrixGeneral()
void TMatrixGeneral::init(){
// pdtTable
PdtParser pdtParser;
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string pdtFileRelPath="/Particle/pdtNew.table";
std::string pdtFile(theSourcePath+pdtFileRelPath);
_particleTable = new ParticleTable;
......
......@@ -7,7 +7,7 @@ MESSAGE("cmake installation for package: " ${PACKAGE_NAME})
set(INCLUDE_DIRECTORIES
${Boost_INCLUDE_DIRS}
${log4cpp_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}
${TOP_DIR}
)
include_directories( ${INCLUDE_DIRECTORIES})
......
......@@ -38,7 +38,7 @@ int main()
ParticleTable pTable;
PdtParser parser;
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string pdtFile(theSourcePath+"/Particle/pdt.table");
if (parser.parse(pdtFile, pTable)) {
......
......@@ -131,7 +131,7 @@ void GlobalEnv::setup(ParserBase* theParser){
// pdtTable
PdtParser pdtParser;
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string pdtFileRelPath=theParser->pdgTableFile();
std::string pdtFile(theSourcePath+pdtFileRelPath);
_particleTable = new ParticleTable;
......
......@@ -40,7 +40,7 @@ PwaEnv& PwaEnv::instance()
bool PwaEnv::setup(std::string& setupFileName)
{
PdtParser pdtParser;
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string pdtFile(theSourcePath+"/Particle/pdt.table");
theParticleTable = new ParticleTable;
......
......@@ -38,7 +38,7 @@ int main()
{
ErrLogger::instance()->setLevel(log4cpp::Priority::DEBUG);
std::string theSourcePath=getenv("CMAKE_SOURCE_DIR");
std::string theSourcePath=getenv("TOP_DIR");
std::string setupFile(theSourcePath + "/Setup/test.setup");
PwaEnv::instance().setup(setupFile);
......
......@@ -6,7 +6,7 @@ MESSAGE("cmake installation for package: " ${PACKAGE_NAME})
set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}
${TOP_DIR}
)
include_directories( ${INCLUDE_DIRECTORIES})
......
......@@ -3,7 +3,7 @@ set(PACKAGE_NAME qft++)
MESSAGE("cmake installation for package: " ${PACKAGE_NAME})
set(INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR})
set(INCLUDE_DIRECTORIES ${TOP_DIR})
include_directories( ${INCLUDE_DIRECTORIES})
......
......@@ -4,9 +4,9 @@ set(PACKAGE_NAME tensor)
set(INCLUDE_DIRECTORIES
${CMAKE_SOURCE_DIR}/qft++/tensor
${CMAKE_SOURCE_DIR}/qft++/c++-template-utils
${CMAKE_SOURCE_DIR}/qft++/matrix
${TOP_DIR}/qft++/tensor
${TOP_DIR}/qft++/c++-template-utils
${TOP_DIR}/qft++/matrix
)
include_directories( ${INCLUDE_DIRECTORIES})
......
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