Commit 0e771d47 authored by gsell's avatar gsell
Browse files

use Find{GSL,HDF5,GTest} shipped with CMake, main CMakeList.txt reviewed

parent fdd2e54f
......@@ -22,9 +22,9 @@ ENDIF (NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE)
CMAKE_HOST_SYSTEM_INFORMATION(RESULT HOSTNAME QUERY HOSTNAME)
MESSAGE (STATUS "Build type is: " ${CMAKE_BUILD_TYPE})
MESSAGE (STATUS "Host OS System: ${CMAKE_HOST_SYSTEM}")
MESSAGE (STATUS "Hostname: ${HOSTNAME}")
MESSAGE ("Build type is: " ${CMAKE_BUILD_TYPE})
MESSAGE ("Host OS System: ${CMAKE_HOST_SYSTEM}")
MESSAGE ("Hostname: ${HOSTNAME}")
# Select flags.
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g ")
......@@ -35,86 +35,92 @@ SET (CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
SET (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
find_package (MPI REQUIRED)
message (STATUS "The C++ compiler identification is: ${CMAKE_CXX_COMPILER_ID}")
message (STATUS "The C++ compiler version is: ${CMAKE_CXX_COMPILER_VERSION}")
message (STATUS "The MPI C++ compiler is: ${MPI_CXX_COMPILER}")
message (STATUS "The underlying C++ compiler is: ${CMAKE_CXX_COMPILER}")
message ("The C++ compiler identification is: ${CMAKE_CXX_COMPILER_ID}")
message ("The C++ compiler version is: ${CMAKE_CXX_COMPILER_VERSION}")
message ("The MPI C++ compiler is: ${MPI_CXX_COMPILER}")
message ("The underlying C++ compiler is: ${CMAKE_CXX_COMPILER}")
OPTION (ENABLE_OpenMP "Use hybrid parallelism MPI-OpenMP" OFF)
set (CMAKE_CXX_STANDARD 11)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_CXX_EXTENSIONS OFF)
add_compile_options (-Wall)
# compiler dependent flags
if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -diag-disable 383 -diag-disable 981 -std=c++11")
add_comile_options (-diag-disable 383 -diag-disable 981)
if (ENABLE_OpenMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -openmp")
endif (ENABLE_OpenMP)
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -Wsign-compare -Wunused-variable -Warray-bounds -DIPPL_RESTRICT_BUG -std=c++11")
add_compile_options (-openmp)
endif ()
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
add_compile_options (-Werror -Wsign-compare -Wunused-variable -Warray-bounds -DIPPL_RESTRICT_BUG)
if (ENABLE_OpenMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
endif (ENABLE_OpenMP)
add_compile_options (-fopenmp)
endif ()
elseif (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "4.7.3")
message (FATAL_ERROR "To build OPAL you need GCC version 4.7.3 or greater")
endif ()
# Warning flags, -Wno-unused-local-typedefs is needed for boost versions below 1.59
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-local-typedefs -Werror=unused-variable -std=c++11")
add_compile_options (-Wno-unused-local-typedefs -Werror=unused-variable)
if (ENABLE_OpenMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
endif (ENABLE_OpenMP)
add_compile_options (-fopenmp)
endif ()
else ()
message (STATUS "Unknown C++ compiler. Please use the GNU or Intel compiler, IF you are having problems.")
message ("Unknown C++ compiler. Please use the GNU or Intel compiler, IF you are having problems.")
endif ()
enable_language (Fortran OPTIONAL)
message (STATUS "Fortran compilers: ${CMAKE_Fortran_COMPILER_NAMES}")
message ("Fortran compilers: ${CMAKE_Fortran_COMPILER_NAMES}")
if (CMAKE_Fortran_COMPILER)
message (STATUS "The Fortran compiler identification is: ${CMAKE_Fortran_COMPILER_ID}")
message (STATUS "The Fortran compiler version is: ${CMAKE_Fortran_COMPILER_VERSION}")
message (STATUS "The Fortran compiler is: ${CMAKE_Fortran_COMPILER}")
message ("The Fortran compiler identification is: ${CMAKE_Fortran_COMPILER_ID}")
message ("The Fortran compiler version is: ${CMAKE_Fortran_COMPILER_VERSION}")
message ("The Fortran compiler is: ${CMAKE_Fortran_COMPILER}")
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
set (Fortran_LIBS "-lgfortran")
endif ()
else ()
message (STATUS "No Fortran compiler found (optional)")
message ("No Fortran compiler found (optional)")
if (ENABLE_AMR)
message (ERROR "AMR is enabled but no Fortran compiler found!")
message (FATAL_ERROR "AMR is enabled but no Fortran compiler found!")
endif ()
endif()
FIND_PACKAGE (H5Hut REQUIRED)
FIND_PACKAGE (HDF5 REQUIRED)
FIND_PACKAGE (GSL REQUIRED)
find_package (H5Hut REQUIRED)
set (HDF5_USE_STATIC_LIBRARIES ON)
find_package (HDF5 REQUIRED)
message ("Found HDF5 libraries: ${HDF5_C_LIBRARIES}")
find_package (GSL REQUIRED)
message ("Found gsl libraries: ${GSL_LIBRARIES}")
set (BOOSTROOT $ENV{BOOST_DIR})
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED OFF)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package (Boost 1.55.0 REQUIRED COMPONENTS filesystem system iostreams regex)
set (Boost_USE_STATIC_LIBS ON)
set (Boost_USE_MULTITHREADED OFF)
set (Boost_USE_STATIC_RUNTIME OFF)
find_package (Boost REQUIRED COMPONENTS filesystem system iostreams regex)
if (Boost_INCLUDE_DIRS)
message (STATUS "Found boost include dir: ${Boost_INCLUDE_DIR}")
message (STATUS "Found boost library dir: ${Boost_LIBRARY_DIR}")
message (STATUS "Found boost libraries: ${Boost_LIBRARIES}")
if (${Boost_VERSION} VERSION_LESS 106000)
message (FATAL_ERROR
"Found Boost library is to old; required is version 1.60.0 or newer!")
endif ()
message ("Found Boost include dir: ${Boost_INCLUDE_DIR}")
message ("Found Boost library dir: ${Boost_LIBRARY_DIR}")
message ("Found Boost libraries: ${Boost_LIBRARIES}")
include_directories (${Boost_INCLUDE_DIRS})
endif ()
### Uldis Locans 2014.09.05 ###
OPTION (ENABLE_DKS "Enable DKS" OFF)
### Load DKS package ###
IF (ENABLE_DKS)
FIND_PACKAGE(DKS 1.1.1 REQUIRED HINTS $ENV{DKS_PREFIX} $ENV{DKS_DIR} $ENV{DKS})
find_package (dKS 1.1.1 REQUIRED HINTS $ENV{DKS_PREFIX} $ENV{DKS_DIR} $ENV{DKS})
set (DKS_VERSION_OPAL \"${DKS_VERSION}\")
MESSAGE (STATUS "Found DKS version: ${DKS_VERSION}")
MESSAGE (STATUS "Found DKS library: ${DKS_LIBRARY}")
MESSAGE (STATUS "Found DKS include dir: ${DKS_INCLUDE_DIR}")
MESSAGE ("Found DKS version: ${DKS_VERSION}")
MESSAGE ("Found DKS library: ${DKS_LIBRARY}")
MESSAGE ("Found DKS include dir: ${DKS_INCLUDE_DIR}")
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDKS_MPI")
### OpenCL compiler flags ###
......@@ -147,16 +153,16 @@ IF (BUILD_OPAL_UNIT_TESTS)
ENDIF (BUILD_OPAL_UNIT_TESTS)
IF (ENABLE_AMR)
MESSAGE (STATUS "Enable AMR_SOLVER " ${ENABLE_AMR})
MESSAGE ("Enable AMR_SOLVER " ${ENABLE_AMR})
ENABLE_LANGUAGE (Fortran)
find_package (AMReX CONFIG REQUIRED
HINTS $ENV{AMREX_HOME}/cmake $ENV{AMREX_DIR}/cmake $ENV{AMREX_PREFIX}/cmake)
MESSAGE (STATUS "Found AMReX include dir: ${AMREX_INCLUDE_DIR}")
MESSAGE (STATUS "Found AMReX library dir: ${AMREX_LIBRARY_DIR}")
MESSAGE (STATUS "Found AMReX libraries: ${AMREX_LIBRARIES}")
MESSAGE (STATUS "Found AMReX Fortran links: ${AMREX_EXTRA_Fortran_LINK_LINE}")
MESSAGE ("Found AMReX include dir: ${AMREX_INCLUDE_DIR}")
MESSAGE ("Found AMReX library dir: ${AMREX_LIBRARY_DIR}")
MESSAGE ("Found AMReX libraries: ${AMREX_LIBRARIES}")
MESSAGE ("Found AMReX Fortran links: ${AMREX_EXTRA_Fortran_LINK_LINE}")
echo_amrex_config_options()
add_definitions(${AMREX_DEFINES})
......@@ -176,9 +182,9 @@ STRING(REGEX MATCH "[^0-9]*" HOSTNAME_BASE "${HOSTNAME}")
IF (ENABLE_SAAMG_SOLVER OR ENABLE_AMR_MG_SOLVER)
IF ( ENABLE_SAAMG_SOLVER )
MESSAGE (STATUS "Enable SAAMG_SOLVER " ${ENABLE_SAAMG_SOLVER})
MESSAGE ("Enable SAAMG_SOLVER " ${ENABLE_SAAMG_SOLVER})
ELSE ( ENABLE_SAAMG_SOLVER )
MESSAGE (STATUS "Enable AMR_MG_SOLVER " ${ENABLE_AMR_MG_SOLVER})
MESSAGE ("Enable AMR_MG_SOLVER " ${ENABLE_AMR_MG_SOLVER})
ENDIF( ENABLE_SAAMG_SOLVER )
IF (NOT (
......@@ -187,39 +193,39 @@ IF (ENABLE_SAAMG_SOLVER OR ENABLE_AMR_MG_SOLVER)
find_package (Trilinos REQUIRED HINTS $ENV{TRILINOS_PREFIX} $ENV{TRILINOS_DIR} $ENV{TRILINOS})
message (STATUS "Found Trilinos: ${Trilinos_DIR}")
message (STATUS " Trilinos version: ${Trilinos_VERSION}")
message (STATUS " Trilinos package list: ${Trilinos_PACKAGE_LIST}")
message (STATUS " Trilinos libraries: ${Trilinos_LIBRARIES}")
message (STATUS " Trilinos TPL libraries: ${Trilinos_TPL_LIBRARIES}")
message ("Found Trilinos: ${Trilinos_DIR}")
message (" Trilinos version: ${Trilinos_VERSION}")
message (" Trilinos package list: ${Trilinos_PACKAGE_LIST}")
message (" Trilinos libraries: ${Trilinos_LIBRARIES}")
message (" Trilinos TPL libraries: ${Trilinos_TPL_LIBRARIES}")
if (NOT ${MPI_CXX_COMPILER} STREQUAL ${Trilinos_CXX_COMPILER} )
message (STATUS "Compiler mismatch:")
message (STATUS " Trilinos was compiled with:")
message (STATUS " ${Trilinos_C_COMPILER}")
message (STATUS " ${Trilinos_CXX_COMPILER}")
message (STATUS " ${Trilinos_Fortran_COMPILER}")
message (STATUS " You are using:")
message (STATUS " ${CMAKE_C_COMPILER}")
message (STATUS " ${CMAKE_CXX_COMPILER}")
message (STATUS " ${CMAKE_Fortran_COMPILER}")
message (FATAL "")
message ("Compiler mismatch:")
message (" Trilinos was compiled with:")
message (" ${Trilinos_C_COMPILER}")
message (" ${Trilinos_CXX_COMPILER}")
message (" ${Trilinos_Fortran_COMPILER}")
message (" You are using:")
message (" ${CMAKE_C_COMPILER}")
message (" ${CMAKE_CXX_COMPILER}")
message (" ${CMAKE_Fortran_COMPILER}")
message (FATAL_ERROR "")
ENDIF ()
ENDIF ()
ENDIF ()
IF (DBG_SCALARFIELD)
MESSAGE (STATUS "\nWrite scalar rho_m field is enabled ")
MESSAGE ("\nWrite scalar rho_m field is enabled ")
SET (CMAKE_CXX_FLAGS "-DDBG_SCALARFIELD ${CMAKE_CXX_FLAGS}")
ENDIF (DBG_SCALARFIELD)
IF (DBG_STENCIL)
MESSAGE (STATUS "\nWrite stencil is enabled ")
MESSAGE ("\nWrite stencil is enabled ")
SET (CMAKE_CXX_FLAGS "-DDBG_STENCIL ${CMAKE_CXX_FLAGS}")
ENDIF (DBG_STENCIL)
IF (NO_FIELD_ASSIGN_OPTIMIZATION)
MESSAGE (STATUS "\nCompiler will not try to optimize field assignment")
MESSAGE ("\nCompiler will not try to optimize field assignment")
SET (CMAKE_CXX_FLAGS
"-DdontOPTIMIZE_FIELD_ASSIGNMENT ${CMAKE_CXX_FLAGS}"
)
......@@ -235,7 +241,7 @@ IF(GIT_FOUND)
)
SET (OPAL_WC_REVISION \"${GIT_OUT}\")
ELSE()
MESSAGE (STATUS "could not find git")
MESSAGE ("could not find git")
SET (OPAL_WC_REVISION \"\")
ENDIF()
......@@ -243,7 +249,6 @@ SET (IPPL_USED_FROM_OPAL "TRUE")
ADD_SUBDIRECTORY (ippl)
ADD_SUBDIRECTORY (optimizer)
ADD_SUBDIRECTORY (src)
ADD_SUBDIRECTORY (tools)
......@@ -255,7 +260,6 @@ ENDIF (BUILD_OPAL_UNIT_TESTS)
set(OPAL_CXX_FLAGS ${OPAL_CXX_FLAGS}
CACHE INTERNAL "" FORCE
)
set(OPAL_LIBS ${OPAL_LIBS}
CACHE INTERNAL "" FORCE
)
......
#
# Find GSL includes and library
#
# GSL
# It can be found at:
# http://amas.web.psi.ch/tools/GSL/index.html
#
# GSL_INCLUDE_DIR - where to find ippl.h
# GSL_LIBRARY - qualified libraries to link against.
# GSL_FOUND - do not attempt to use if "no" or undefined.
FIND_PATH(GSL_INCLUDE_DIR gsl/gsl_fft.h
HINTS $ENV{GSL_INCLUDE_PATH} $ENV{GSL_INCLUDE_DIR} $ENV{GSL_PREFIX}/include $ENV{GSL_DIR}/include $ENV{GSL}/include
PATHS ENV CPP_INCLUDE_PATH
)
FIND_LIBRARY(GSL_LIBRARY gsl
HINTS $ENV{GSL_LIBRARY_PATH} $ENV{GSL_LIBRARY_DIR} $ENV{GSL_PREFIX}/lib $ENV{GSL_DIR}/lib $ENV{GSL}/lib
PATHS ENV LIBRARY_PATH
)
FIND_LIBRARY(GSL_LIBRARY_CBLAS gslcblas
HINTS $ENV{GSL_LIBRARY_PATH} $ENV{GSL_LIBRARY_DIR} $ENV{GSL_PREFIX}/lib $ENV{GSL_DIR}/lib $ENV{GSL}/lib
PATHS ENV LIBRARY_PATH
)
set( GSL_LIBRARY
${GSL_LIBRARY}
${GSL_LIBRARY_CBLAS}
)
IF(GSL_INCLUDE_DIR AND GSL_LIBRARY)
SET( GSL_FOUND "YES" )
ENDIF(GSL_INCLUDE_DIR AND GSL_LIBRARY)
IF (GSL_FOUND)
IF (NOT GSL_FIND_QUIETLY)
MESSAGE(STATUS "Found GSL libraries: ${GSL_LIBRARY}")
MESSAGE(STATUS "Found GSL include dir: ${GSL_INCLUDE_DIR}")
ENDIF (NOT GSL_FIND_QUIETLY)
ELSE (GSL_FOUND)
IF (GSL_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find GSL!")
ENDIF (GSL_FIND_REQUIRED)
ENDIF (GSL_FOUND)
#
# Find gtest Google Test includes and library
#
# gtest
# It can be found at:
# http://amas.web.psi.ch/tools/GSL/index.html
#
# GTEST_INCLUDE_DIRS - where to find gtest/gtest.h
# GTEST_LIBRARY - libgtest.a path
# GTEST_MAIN_LIBRARY - libgtest_main.a path
# GTEST_FOUND - do not attempt to use if "no" or undefined.
FIND_PATH(GTEST_INCLUDE_DIRS gtest/gtest.h
HINTS $ENV{GTEST_INCLUDE_PATH} $ENV{GTEST_INCLUDE_DIRS} $ENV{GTEST_PREFIX}/include $ENV{GTEST_ROOT}/include ${PROJECT_SOURCE_DIR}/tests/tools/gtest/include
PATHS ENV CPP_INCLUDE_PATH
)
FIND_LIBRARY(GTEST_LIBRARY gtest
HINTS $ENV{GTEST_LIBRARY_PATH} $ENV{GTEST_LIBRARY_DIR} $ENV{GTEST_PREFIX}/lib $ENV{GTEST_ROOT}/lib $ENV{GTEST}/lib ${PROJECT_SOURCE_DIR}/tests/tools/gtest/lib
PATHS ENV LIBRARY_PATH
)
FIND_LIBRARY(GTEST_LIBRARY_MAIN gtest_main
HINTS $ENV{GTEST_LIBRARY_PATH} $ENV{GTEST_LIBRARY_DIR} $ENV{GTEST_PREFIX}/lib $ENV{GTEST_ROOT}/lib $ENV{GTEST}/lib ${PROJECT_SOURCE_DIR}/tests/tools/gtest/lib
PATHS ENV LIBRARY_PATH
)
set( GTEST_BOTH_LIBRARIES
${GTEST_LIBRARY}
${GTEST_LIBRARY_MAIN}
)
IF(GTEST_INCLUDE_DIRS AND GTEST_LIBRARY AND GTEST_LIBRARY_MAIN)
SET( GTEST_FOUND "YES" )
ENDIF(GTEST_INCLUDE_DIRS AND GTEST_LIBRARY AND GTEST_LIBRARY_MAIN)
IF (GTEST_FOUND)
IF (NOT GTEST_FIND_QUIETLY)
MESSAGE(STATUS "Found gtest libraries: ${GTEST_BOTH_LIBRARIES}")
MESSAGE(STATUS "Found gtest include dir: ${GTEST_INCLUDE_DIRS}")
ENDIF (NOT GTEST_FIND_QUIETLY)
ELSE (GTEST_FOUND)
IF (GTest_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find GTEST!")
ENDIF (GTest_FIND_REQUIRED)
ENDIF (GTEST_FOUND)
\ No newline at end of file
#
# Find HDF5 includes and library
#
# HDF5
# It can be found at:
# http://amas.web.psi.ch/tools/HDF5/index.html
#
# HDF5_INCLUDE_DIR - where to find hdf5.h
# HDF5_LIBRARY - qualified libraries to link against.
# HDF5_FOUND - do not attempt to use if "no" or undefined.
SET(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
FIND_PATH(HDF5_INCLUDE_DIR hdf5.h
HINTS $ENV{HDF5_INCLUDE_PATH} $ENV{HDF5_INCLUDE_DIR} $ENV{HDF5_PREFIX}/include $ENV{HDF5_DIR}/include $ENV{HDF5}/include
PATHS ENV C_INCLUDE_PATH
)
FIND_LIBRARY(HDF5_LIBRARY libhdf5.a
HINTS $ENV{HDF5_LIBRARY_PATH} $ENV{HDF5_LIBRARY_DIR} $ENV{HDF5_PREFIX}/lib $ENV{HDF5_DIR}/lib $ENV{HDF5}/lib
PATHS ENV LIBRARY_PATH
)
IF(HDF5_INCLUDE_DIR AND HDF5_LIBRARY)
SET( HDF5_FOUND "YES" )
ENDIF(HDF5_INCLUDE_DIR AND HDF5_LIBRARY)
IF (HDF5_FOUND)
IF (NOT HDF5_FIND_QUIETLY)
MESSAGE(STATUS "Found HDF5 library: ${HDF5_LIBRARY}")
MESSAGE(STATUS "Found HDF5 include dir: ${HDF5_INCLUDE_DIR}")
ENDIF (NOT HDF5_FIND_QUIETLY)
ELSE (HDF5_FOUND)
IF (HDF5_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find HDF5!")
ENDIF (HDF5_FIND_REQUIRED)
ENDIF (HDF5_FOUND)
......@@ -7,8 +7,9 @@ SET(IPPL_CMAKE_CXX_FLAGS "${IPPL_CMAKE_CXX_FLAGS}")
SET(${PROJECT_NAME}_LIBRARIES
${GSL_LIBRARY}
${GSL_CBLAS_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY_DIR}/lib${IPPL_LIBRARY}.a
${Boost_LIBRARIES}
${Trilinos_LIBRARIES}
......
......@@ -74,7 +74,7 @@ IF ( ENABLE_AMR )
${Trilinos_TPL_LIBRARIES}
${IPPL_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${AMREX_EXTRA_Fortran_LINK_LINE}
${AMREX_LIBRARIES})
......
......@@ -41,7 +41,7 @@ IF(${HOSTNAME_BASE} MATCHES "edison" OR ${HOSTNAME_BASE} MATCHES "cori" OR
${HOSTNAME_BASE} MATCHES "daint")
SET (LIBS
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY}
ippl
m
......@@ -50,7 +50,7 @@ IF(${HOSTNAME_BASE} MATCHES "edison" OR ${HOSTNAME_BASE} MATCHES "cori" OR
ELSE()
SET (LIBS
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY}
ippl
${MPI_LIBRARIES}
......
......@@ -41,7 +41,7 @@ link_directories (
SET (LIBS
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY}
ippl
${Boost_LIBRARIES}
......
......@@ -34,7 +34,7 @@ link_directories (
SET (LIBS
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY}
ippl
${MPI_CXX_LIBRARIES}
......
......@@ -44,7 +44,7 @@ link_directories (
SET (LIBS
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${IPPL_LIBRARY}
ippl
${Boost_LIBRARIES}
......
......@@ -38,7 +38,7 @@ set_source_files_properties(SOURCE PIC3d.cpp p3m3d.cpp
#target_link_libraries (PIC3d ${IPPL_LIBS})
add_executable (p3m3dHeating p3m3dHeating.cpp)
target_link_libraries (p3m3dHeating ${IPPL_LIBS} ${H5Hut_LIBRARY} ${HDF5_LIBRARY} z ${CMAKE_DL_LIBS})
target_link_libraries (p3m3dHeating ${IPPL_LIBS} ${H5Hut_LIBRARY} ${HDF5_LIBRARIES} z ${CMAKE_DL_LIBS})
#add_executable (p3m3d p3m3d.cpp)
#target_link_libraries (p3m3d ${IPPL_LIBS})
......@@ -56,7 +56,7 @@ add_executable (p3m3dRegressionTests p3m3dRegressionTests.cpp)
target_link_libraries (p3m3dRegressionTests ${IPPL_LIBS})
#add_executable (p3m3dMicrobunching p3m3dMicrobunching.cpp)
#target_link_libraries (p3m3dMicrobunching ${IPPL_LIBS} ${H5Hut_LIBRARY} ${HDF5_LIBRARY} z ${CMAKE_DL_LIBS})
#target_link_libraries (p3m3dMicrobunching ${IPPL_LIBS} ${H5Hut_LIBRARY} ${HDF5_LIBRARIES} z ${CMAKE_DL_LIBS})
#add_executable (p3m3d_periodic p3m3d_periodic.cpp)
#target_link_libraries (p3m3d_periodic ${IPPL_LIBS})
......
......@@ -6,8 +6,9 @@ set (OPAL_LIBS
${OPTP_LIBRARY}
${IPPL_LIBRARY}
${GSL_LIBRARY}
${GSL_CBLAS_LIBRARY}
${H5HUT_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
)
include_directories (
......@@ -48,4 +49,4 @@ set_target_properties( pisa-opal.exe PROPERTIES
install (TARGETS pisa-opal.exe
DESTINATION "${CMAKE_INSTALL_PREFIX}/bin"
)
\ No newline at end of file
)
......@@ -148,8 +148,9 @@ target_link_libraries (libOPAL
${OPTP_LIBRARY}
${IPPL_LIBRARY}
${GSL_LIBRARY}
${GSL_CBLAS_LIBRARY}
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
${Boost_LIBRARIES}
m
z
......@@ -192,4 +193,4 @@ install (FILES ${HDRS} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/src")
# mode:cmake
# cmake-tab-width: 4
# indent-tabs-mode:nil
# End:
\ No newline at end of file
# End:
......@@ -25,7 +25,7 @@ SET (SDDS_LIBS
mdblib
lzma
${H5Hut_LIBRARY}
${HDF5_LIBRARY}
${HDF5_LIBRARIES}
z
${MPI_LIBRARIES}
dl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment