CMakeLists.txt 936 Bytes
Newer Older
1 2
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message ("Adding test ippltoyfdtd found in ${_relPath}")
gsell's avatar
gsell committed
3 4 5 6 7 8

set (IPPLTOYFDTD_SRCS
    ToyFDTD-DataSink/DataSink.cpp
)

include_directories (
9
    ${CMAKE_SOURCE_DIR}/src
gsell's avatar
gsell committed
10
    ${CMAKE_SOURCE_DIR}/ippl/src
gsell's avatar
gsell committed
11 12 13 14
)

link_directories (
    ${CMAKE_CURRENT_SOURCE_DIR}/ToyFDTD-DataSink
15
    ${CMAKE_SOURCE_DIR}/src
16
    ${Boost_LIBRARY_DIRS}
gsell's avatar
gsell committed
17 18
)

19
set (IPPL_LIBS ippl)
uldis_l's avatar
uldis_l committed
20

21
if (ENABLE_DKS)
22 23 24

   include_directories (${DKS_INCLUDE_DIR})
   link_directories (${DKS_LIBRARY_DIR})
25
   set (IPPL_LIBS ${IPPL_LIBS} ${DKS_LIBRARY_DIR}/libdks.a)
26

27
endif ()
uldis_l's avatar
uldis_l committed
28

gsell's avatar
gsell committed
29
add_executable (ipplToyFDTD ${IPPLTOYFDTD_SRCS} ToyFDTD-DataSink/ipplToyFDTD2.cpp)
30 31 32 33
target_link_libraries (
    ipplToyFDTD
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
34
    boost_timer
35
)
gsell's avatar
gsell committed
36

gsell's avatar
gsell committed
37 38 39 40 41 42
# vi: set et ts=4 sw=4 sts=4:
  
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
43
# require-final-newline: nil
gsell's avatar
gsell committed
44
# End: