Update CMakeFiles, add initial pair potential implementation and tests
This commit is contained in:
parent
6162b27a89
commit
f15eb0cf51
9 changed files with 67 additions and 55 deletions
|
@ -1,9 +1,9 @@
|
|||
include_directories(${gtest_SOURCE_DIR}/include ${gtest_SOURCE_DIR})
|
||||
|
||||
add_executable(Unit_Tests_run
|
||||
add_executable(${NAME}_tests
|
||||
test_potential.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(Unit_Tests_run gtest gtest_main)
|
||||
target_link_libraries(Unit_Tests_run ${CMAKE_PROJECT_NAME}_lib)
|
||||
add_test(Name Tests COMMAND Unit_Tests_run)
|
||||
target_link_libraries(${NAME}_tests gtest gtest_main)
|
||||
target_link_libraries(${NAME}_tests ${CMAKE_PROJECT_NAME}_lib)
|
||||
add_test(NAME ${NAME}Tests COMMAND ${CMAKE_BINARY_DIR}/tests/unit_tests/${NAME}_tests)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue