CMakeLists.txt 2.38 KB
Newer Older
gsell's avatar
gsell committed
1
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
2
message (STATUS "Adding particle tests found in ${_relPath}")
3 4

include_directories (
5
    ${CMAKE_SOURCE_DIR}/src
gsell's avatar
gsell committed
6
    ${CMAKE_SOURCE_DIR}/ippl/src
Andreas Adelmann's avatar
Andreas Adelmann committed
7
    ${CLASSIC_SOURCE_DIR}
8 9
    ${H5Hut_INCLUDE_DIR}
    ${HDF5_INCLUDE_DIR}
10 11 12 13
)

link_directories (
    ${CMAKE_CURRENT_SOURCE_DIR}
uldis_l's avatar
uldis_l committed
14
    ${CMAKE_SOURCE_DIR}/src
15
    ${Boost_LIBRARY_DIRS}
16 17
)

gsell's avatar
gsell committed
18 19
set (IPPL_LIBS ippl)
set (COMPILE_FLAGS ${OPAL_CXX_FLAGS})
uldis_l's avatar
uldis_l committed
20

gsell's avatar
gsell committed
21
if (ENABLE_DKS)
22 23 24 25 26
   include_directories (${DKS_INCLUDE_DIR})
   link_directories (${DKS_LIBRARY_DIR})
   #SET (IPPL_LIBS ${IPPL_LIBS} dks)
   SET (IPPL_LIBS ${IPPL_LIBS} ${DKS_LIBRARY_DIR}/libdks.a)

gsell's avatar
gsell committed
27
endif ()
uldis_l's avatar
uldis_l committed
28

29
set_source_files_properties(SOURCE PIC3d.cpp p3m3d.cpp
gsell's avatar
gsell committed
30 31
    PROPERTY COMPILE_FLAGS
    -fno-tree-vrp)
Andreas Adelmann's avatar
Andreas Adelmann committed
32

33 34 35 36 37 38 39
add_executable (PIC3d PIC3d.cpp)
target_link_libraries (
    PIC3d
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)
uldis_l's avatar
uldis_l committed
40

41
add_executable (p3m3dHeating p3m3dHeating.cpp)
42 43 44 45 46 47
target_link_libraries (
    p3m3dHeating
    ${IPPL_LIBS}
    ${H5Hut_LIBRARY}
    ${HDF5_LIBRARIES}
    ${MPI_CXX_LIBRARIES}
48
    boost_timer
49
)
Andreas Adelmann's avatar
Andreas Adelmann committed
50

51 52 53 54 55 56 57
add_executable (p3m3d p3m3d.cpp)
target_link_libraries (
    p3m3d
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)
Andreas Adelmann's avatar
Andreas Adelmann committed
58

59
add_executable (p3m3dTwoStreamParallel p3m3dTwoStreamParallel.cpp)
60 61 62 63
target_link_libraries (
    p3m3dTwoStreamParallel
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
64
    boost_timer
65
)
Andreas Adelmann's avatar
Andreas Adelmann committed
66

67
add_executable (p3m3dRegressionTests p3m3dRegressionTests.cpp)
68 69 70 71
target_link_libraries (
    p3m3dRegressionTests
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
72
    boost_timer
73
)
Andreas Adelmann's avatar
Andreas Adelmann committed
74

75 76 77 78 79 80 81 82 83 84
add_executable (p3m3dMicrobunching p3m3dMicrobunching.cpp)
target_link_libraries (
    p3m3dMicrobunching
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    ${H5Hut_LIBRARY}
    ${HDF5_LIBRARIES}
    z
    boost_timer
)
Andreas Adelmann's avatar
Andreas Adelmann committed
85

86 87
add_executable (chsr-1 chsr-1.cpp)
target_link_libraries (chsr-1 ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
Andreas Adelmann's avatar
Andreas Adelmann committed
88

89 90 91 92 93 94 95 96
add_executable (pbconds3D pbconds3D.cpp)
target_link_libraries (pbconds3D ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)

add_executable (salman-1 salman-1.cpp)
target_link_libraries (salman-1 ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)

add_executable (test-scatter-1 test-scatter-1.cpp)
target_link_libraries (test-scatter-1 ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
Andreas Adelmann's avatar
Andreas Adelmann committed
97

gsell's avatar
gsell committed
98
# vi: set et ts=4 sw=4 sts=4:
99

gsell's avatar
gsell committed
100 101 102 103
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
104
# require-final-newline: nil
gsell's avatar
gsell committed
105
# End: