CMakeLists.txt 1.88 KB
Newer Older
1 2 3 4
file (RELATIVE_PATH _relPath "${CMAKE_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
message ("Adding test FFT found in ${_relPath}")
message ("MPI CXX compiler: ${MPI_CXX_COMPILER}")
message ("CXX compiler: ${CMAKE_CXX_COMPILER}")
uldis_l's avatar
uldis_l committed
5

gsell's avatar
gsell committed
6
include_directories (
uldis_l's avatar
uldis_l committed
7
    ${CMAKE_SOURCE_DIR}/src
gsell's avatar
gsell committed
8
    ${CMAKE_SOURCE_DIR}/ippl/src
gsell's avatar
gsell committed
9 10 11 12
)

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

17
set (IPPL_LIBS ippl)
18

19
if (ENABLE_DKS)
20 21
   include_directories (${DKS_INCLUDE_DIR})
   link_directories (${DKS_LIBRARY_DIR})
22 23
   set (IPPL_LIBS ${IPPL_LIBS} ${DKS_LIBRARY_DIR}/libdks.a)
endif ()
uldis_l's avatar
uldis_l committed
24

25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
add_executable (fftspeed    fftspeed.cpp)
add_executable (TestFFT     TestFFT.cpp)
add_executable (TestFFT-1   TestFFT-1.cpp)
add_executable (TestFFT-2   TestFFT-2.cpp)
add_executable (TestFFTCos  TestFFTCos.cpp)
add_executable (TestFFTSin  TestFFTSin.cpp)
add_executable (TestFFT-XT3 TestFFT-XT3.cpp)
add_executable (TestRC      TestRC.cpp)
add_executable (TestRCMIC   TestRCMIC.cpp)

target_link_libraries (fftspeed    ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFT     ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFT-1   ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFT-2   ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFTCos  ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFTSin  ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestFFT-XT3 ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestRC      ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
target_link_libraries (TestRCMIC   ${IPPL_LIBS} ${MPI_CXX_LIBRARIES} boost_timer)
uldis_l's avatar
uldis_l committed
44

45 46
add_subdirectory (SeaborgRes)

gsell's avatar
gsell committed
47 48 49 50 51 52
# vi: set et ts=4 sw=4 sts=4:
  
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
53
# require-final-newline: nil
gsell's avatar
gsell committed
54
# End: