Message: AIDA and cmake Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question AIDA and cmake 

Forum: Analysis
Date: 24 Jan, 2012
From: Elliott Leonard <Elliott Leonard>

I am having trouble getting AnaEx01 to compile using cmake. I have installed osc_batch 16.11.5 and can compile using the Geant4make (the old way) but I would like to use cmake.

Reading through other treads about using cmake and ROOT I was able to get cmake to include the `aida-config --incs` but when I compile I get the "error: AIDA/AIDA.h: No such file or directory."

Here is my CMakeList.txt for AnaEx01:

cmake_minimum_required(VERSION 2.6 FATAL_ERROR) project(AnaEx01) find_package(Geant4 REQUIRED ui_all vis_all) include(${Geant4_USE_FILE})

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${Geant4_INCLUDE_DIR}) file(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)

add_executable(AnaEx01 EXCLUDE_FROM_ALL ${sources}) target_link_libraries(AnaEx01 ${Geant4_LIBRARIES})

set(CMAKE_EXE_LINKER_FLAGS "-L/usr/local/osc_batch/16.11.5/lib -lBatchLabAIDA -lBatchLabCore -lHCL -lLibZip -losc_zip -losc_zlib -lLibUtils -lMidnight -losc_Minuit")

SET(CMAKE_MODULE_PATH /Applications/geant4.9.5/cmake/Modules/) include_directories(/usr/local/osc_batch/16.11.5/Resources/AIDA/src/cpp/AIDA)

option(G4ANALYSIS_USE "Build with ROOT" ON) add_definitions(-DG4UI_USE -DG4VIS_USE -DG4ANALYSIS_USE)

I have the include_directories to include the path of my osc installation, I run the file at the beginning of every terminal session, and following the old practice I set the environment variable G4ANALYSIS_USE=1. I have the set(CMAKE_EXE_LINKER_FLAGS "-L/usr/local/osc_batch/16.11.5/lib ..."). Since the osc_batch has no executables, I cannot use the find_package(...) command.

Any help on this would be greatly appreciated.


Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: AIDA and cmake   (Jacquemier Jean - 24 Jan, 2012)
2 None: Re: AIDA and cmake   (Jacquemier Jean - 24 Jan, 2012)
 Add Message Add Message
to: "AIDA and cmake"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]