Added basic integer prototype

This commit is contained in:
Robert 2020-07-18 21:06:17 +02:00
parent 0061f9692f
commit 95282f7d1a
7 changed files with 162 additions and 6 deletions

13
testapp/CMakeLists.txt Normal file
View file

@ -0,0 +1,13 @@
add_executable(testapp
"main.cpp"
)
target_include_directories(testapp PUBLIC
${GMP_INCLUDE_DIR}
${CMAKE_SOURCE_DIR}/include
)
target_link_libraries(testapp PUBLIC
${GMP_LIBRARY}
gm3p
)

17
testapp/main.cpp Normal file
View file

@ -0,0 +1,17 @@
#include "gm3p.hpp"
#include <iostream>
using namespace gm3p;
int main(int argc, char** argv)
{
gInt a("12234234234095780349859034869034635235", 10);
gInt b("123534622305820985092875207398734234753", 10);
gInt c = a * b;
std::cout << a << " * " << b << " = " << c << std::endl;
return 0;
}