- Add PairPotential Abstract class - Add Lennard-Jones potential that should work with both CUDA and C++ code - Add tests on HOST side for LJ potential
10 lines
334 B
CMake
10 lines
334 B
CMake
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
|
|
|
|
add_executable(${NAME}_tests
|
|
test_potential.cpp
|
|
)
|
|
|
|
target_link_libraries(${NAME}_tests gtest gtest_main)
|
|
target_link_libraries(${NAME}_tests ${CMAKE_PROJECT_NAME}_cuda_lib)
|
|
add_test(NAME ${NAME}Tests COMMAND ${CMAKE_BINARY_DIR}/tests/unit_tests/${NAME}_tests)
|