CMakeLists.txt 1.3 KB
Newer Older
gsell's avatar
gsell committed
1
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
2 3 4 5 6 7 8 9
message (STATUS "Adding parallel tests found in ${_relPath}")

include_directories (
    ${CMAKE_SOURCE_DIR}/ippl/src
)

link_directories (
    ${CMAKE_CURRENT_SOURCE_DIR}
10
    ${Boost_LIBRARY_DIRS}
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
)

set (IPPL_LIBS ippl)
set (COMPILE_FLAGS ${OPAL_CXX_FLAGS})

if (ENABLE_DKS)
   include_directories (${DKS_INCLUDE_DIR})
   link_directories (${DKS_LIBRARY_DIR})
   SET (IPPL_LIBS ${IPPL_LIBS} ${DKS_LIBRARY_DIR}/libdks.a)
endif ()

add_executable (2ddens 2ddens.cpp)
target_link_libraries (
    2ddens
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)

add_executable (dualmpi dualmpi.cpp)
target_link_libraries (
    dualmpi
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)

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

add_executable (reduce-2 reduce-2.cpp)
target_link_libraries (
    reduce-2
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)

add_executable (volley volley.cpp)
target_link_libraries (
    volley
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)
gsell's avatar
gsell committed
61 62

# vi: set et ts=4 sw=4 sts=4:
63

gsell's avatar
gsell committed
64 65 66 67
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
68
# require-final-newline: nil
69
# End: