# # Testing # ENABLE_TESTING() # Automatically create tests using files named "Test*.cpp" FILE(GLOB TEST_PROGS "*Test*.cpp") FOREACH(TEST_PROG ${TEST_PROGS}) GET_FILENAME_COMPONENT(TEST_ROOT ${TEST_PROG} NAME_WE) # All tests use shared libraries ADD_EXECUTABLE(${TEST_ROOT} ${TEST_PROG}) TARGET_LINK_LIBRARIES(${TEST_ROOT} ${OPENMM_AMOEBA_LIBRARY_NAME}) ADD_TEST(${TEST_ROOT} ${EXECUTABLE_OUTPUT_PATH}/${TEST_ROOT}) ENDFOREACH(TEST_PROG ${TEST_PROGS})