Skip to content
Snippets Groups Projects
Commit 6726bf09 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[Tests] Add minimalist test

parent 182327a8
No related branches found
No related tags found
Loading
......@@ -35,5 +35,8 @@ if(SUFFIX_SO_VERSION)
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})
endif()
# Unit tests
add_subdirectory(tests)
# Installation
install(TARGETS ${PROJECT_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION lib)
ADD_UNIT_TEST(add add)
target_link_libraries(add ${PROJECT_NAME})
#include <cassert>
#include "example-adder/gepadd.hpp"
int main() {
assert(gepetto::example::add(1, 2) == 3);
assert(gepetto::example::add(5, -1) == 4);
assert(gepetto::example::add(-3, -1) == -4);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment