> <\body> In the example, we show how to create small project , which construct an application for solving univariate polynomial equations.\ First, we create folder : <\shell-code> mkdir test In this folder, we write a code (eg. ) which uses packages: <\cpp-code> #include \realroot/GMP.hpp\ #include \realroot/polynomial_tensor.hpp\ #include \realroot/solver_continued_fraction.hpp\ \; int main(int argc, char** argv) { \ \ using namespace mmx; \; \ \ typedef ZZ coeff_t; \ \ typedef polynomial\coeff_t,with\MonomialTensor\ \ Polynomial; \ \ typedef solver\coeff_t,ContFrac\Approximate\ \ Solver; \; \ \ if(argc\0) { \ \ \ \ Polynomial p(argv[1]); \ \ \ \ std::cout\\"Polynomial: "\\p\\std::endl; \; \ \ \ \ Solver::Solutions sol; Solver::solve(sol,p); \ \ \ \ std::cout\\"Solutions : "\\sol\\std::endl; \ \ } } Then we write the corresponding configuration file for : <\shell-code> cmake_minimum_required(VERSION 2.6) \; \ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_BINARY_DIR}/CMakeModules/) \; <\with|color|brown> ## Search the package realroot and add the include path and\ ## link the corresponding libraries. ## As REQUIRED, if the package is not found, it stops with an error. \ find_package(Realroot REQUIRED) \; include_directories( ${REALROOT_INCLUDE_DIR} ) link_libraries( ${REALROOT_LIBRARIES} ) \; add_executable(solver ./solver.cpp) target_link_libraries(solver ${REALROOT_LIBRARIES}) The folder test should now contains the following files: <\verbatim> test \|-- CMakeLists.txt `-- solver.cpp\ \; We go in the folder and configure the package with : <\shell-code> cd ../build; rm -rf CMakeCache.txt; cmake ../test Notice that we found the package , which was already built in the folder . Then, we compile the code: <\shell-code> make Now, we can use the application as follows: <\shell-code> ./solver "x^8-3*x-1" <\verbatim> Polynomial: -1-3*x+x^8 Solutions : [-15367/46108, -2177/6532], [2901/2395, 2557/2111]\ . If you don't have this file, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.> <\initial> <\collection>