Revision cc68bb44753ca4643a1be553a6ddb9a2b31bc477 authored by Timur Pocheptsov on 27 March 2014, 07:43:26 UTC, committed by Timur Pocheptsov on 27 March 2014, 07:43:26 UTC
1 parent 449c76b
CMakeLists.txt
############################################################################
# CMakeLists.txt file for building ROOT math/minuit2 package
############################################################################
ROOT_USE_PACKAGE(math/mathcore)
ROOT_USE_PACKAGE(hist/hist)
add_definitions(-DWARNINGMSG -DUSE_ROOT_ERROR)
#---Deal with the parallel option on Minuit2. Probably it should be done using a build 'option' and not
# using a environment variable -- NOT TESTED ---
if($ENV{USE_PARALLEL_MINUIT2})
if($ENV{USE_OPENMP})
add_definitions(-D_GLIBCXX_PARALLEL -fopenmp)
set_target_properties(Minuit2 PROPERTIES LINK_FLAGS -fopenmp)
elseif($ENV{USE_MPI})
add_definitions(-DMPIPROC)
set(CMAKE_CXX_COMPILER mpic++)
set(CMAKE_C_COMPILER mpic++)
set(CMAKE_CXX_LINK_EXECUTABLE mpic++)
endif()
endif()
ROOT_GENERATE_DICTIONARY(G__Minuit2 *.h Minuit2/*.h MODULE Minuit2 LINKDEF LinkDef.h)
ROOT_LINKER_LIBRARY(Minuit2 *.cxx G__Minuit2.cxx DEPENDENCIES MathCore Hist)
ROOT_INSTALL_HEADERS()
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...