CMakeLists.txt 978 Bytes
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 simple 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
)

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 (ScalarAdvection ScalarAdvection.cpp)
target_link_libraries (
    ScalarAdvection
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)

add_executable (fermi-dirac-field fermi-dirac-field.cpp)
target_link_libraries (
    fermi-dirac-field
    ${IPPL_LIBS}
    ${MPI_CXX_LIBRARIES}
    boost_timer
)
gsell's avatar
gsell committed
37

gsell's avatar
gsell committed
38
# vi: set et ts=4 sw=4 sts=4:
39

gsell's avatar
gsell committed
40 41 42 43
# Local Variables:
# mode: cmake
# cmake-tab-width: 4
# indent-tabs-mode: nil
44
# require-final-newline: nil
45
# End: