diff --git a/tools/stdhep-tools/CMakeLists.txt b/tools/stdhep-tools/CMakeLists.txt index d0b560361..59d27a566 100644 --- a/tools/stdhep-tools/CMakeLists.txt +++ b/tools/stdhep-tools/CMakeLists.txt @@ -19,8 +19,9 @@ foreach (stdhep_program_source ${stdhep_program_sources}) endforeach() add_custom_command(OUTPUT ${stdhep_programs} - COMMAND make BIN=${STDHEP_TOOLS_BIN_DIR} SRC_DIR=${CMAKE_BINARY_DIR}/stdhep-tools-src/ STDHEP_DIR=${STDHEP_DIR} + COMMAND make BIN=${STDHEP_TOOLS_BIN_DIR} SRC_DIR=${CMAKE_BINARY_DIR}/stdhep-tools-src/ STDHEP_DIR=${STDHEP_DIR} GSL_INCLUDE_DIRS=${GSL_INCLUDE_DIRS} GSL_LIBRARY=${GSL_LIBRARY} WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/stdhep-tools-src" DEPENDS "${CMAKE_BINARY_DIR}/stdhep-tools-src") add_custom_target(stdhep_tools_build ALL DEPENDS ${stdhep_programs}) + diff --git a/tools/stdhep-tools/src/Makefile b/tools/stdhep-tools/src/Makefile index 379cbe87c..2e207af25 100644 --- a/tools/stdhep-tools/src/Makefile +++ b/tools/stdhep-tools/src/Makefile @@ -3,10 +3,11 @@ #STDHEP_DIR := $(SRC_DIR)/stdhep-5-06-01 STDHEP_C := $(STDHEP_DIR)/lib/libstdhepC.a MCFIO := $(STDHEP_DIR)/lib/libFmcfio.a -LOADLIBS=-L$(STDHEP_DIR)/lib +LOADLIBS=-L$(STDHEP_DIR)/lib -L$(dir $(GSL_LIBRARY)) #LOADLIBS=-L/usr/local/lib/stdhep -L/afs/slac.stanford.edu/package/cernlib/@sys/cern/2002/lib LDLIBS=-lstdhepC -lFmcfio -lgsl -lgslcblas -INCFILES=-I$(STDHEP_DIR)/src/inc -I$(SRC_DIR) +#-l$(GSL_CBLAS_LIBRARY) -l$(GSL_LIBRARY) +INCFILES=-I$(STDHEP_DIR)/src/inc -I$(SRC_DIR) -I$(GSL_INCLUDE_DIRS) CPP=g++ CPPFLAGS=$(LOADLIBS) $(LDLIBS) -g -std=c++11 TARGETS := $(patsubst $(SRC_DIR)/%.cc,$(BIN)/%,$(wildcard $(SRC_DIR)/*.cc))