Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Cannot makefile Nef_3 examples
- Date: Wed, 25 Sep 2019 06:57:03 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:JTFkfRFHVCxwZd2xTxFeCZ1GYnF86YWxBRYc798ds5kLTJ7yp8qwAkXT6L1XgUPTWs2DsrQY0rGQ6PmrCT1IyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfL1/IA+4oAnMucUbgo9vIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1jioMKjw3/3zNisFokaxVvhyhqRx8zYDabo6aO/hxcb/Sc94BWWpMXNxcWzBdDo6ybYYCCfcKM+ZCr4n6olsDtRWyCxSyC+z00DBInWP23awk3OQnDArI2gsgH8gPsHTTsNX+KaMeX+Grw6nPyDXMce9W2S396YbIaB8uve2MXbVqccvRzEUjGR7Og1KLqYzhODOVzOUNs2+H7+Z6UOKvj3Uqqw50oje1x8csjpPFiZ4SylDB7Ch0xps+K9O/SE5+e9GkEZ1QujmcN4RsWcwtWGVotzggxrIavp67eS4Hw4kkyR7Hc/GLbZSE7xb5WOuSITp0nmxpdKyiixqo/kWtzvXwWteu31pWsyZIl8fDu34C2hHW9MeHRPpw8Vuk1DqS2A3c8f1ILEUpmqbGMZEu37s9lpQIvknBACP7nVj6g7WXe0k5/+Wn9vjrb7T4qZKaKoR6kBvxMr40lcy6Gek4MhYBX2yc+emk0b3s50z5QLFTgvw4iKnVrYnWJcoUq6O9GQNV3YEj6xGwDzeiztsUh2UILFVAeB6fjojpPU/BIOzgAPuhn1ihlC1nyvPGM7H7HJnBMGXPnK3ucLt580JczRA8zdFb55JaELEBJ/fzV1fqtNzcCR85KQ20w+H7CNln04MeXXmCAqCcMKzIsF+I4vgjLPWLZI8QoDr9MeQq5+byjX8lnl8QZbWm3ZQNZ3C8B/hpPkSZYWHwjdccCmcKpREzTPfqiV2HST5cfWy+X6M65jEhCYKpF53PRo63gO/J4CDuFZJfYiVKC0uHDGzzX4SCQfYFLiyIceF7lTlRH4OsQYY6yRCjskfezKBmKfacugIVspfuyMJkyeTYiRYo5H0+R5CG12aXTmZo2GYMbzAz1aF750d6zwHQguBDn/VEGIkLtLtyWQAgOMuElrEoO5XJQgvEO+yxZhOmT9GhW2xjS9swx5oReR84FYnzyB/E2CWuDvkekLnZXMVloJKZ5GD4IoNG81iD0aAgi1c8Rc4WbD+pg6d+807YAIubyhzFxZbvTrwV2Wv2zEnG1XCH5RgKXwt5UKGDVncaNBPb
I think you should take a CMakeLists.txt from the example directory
of Nef, copy/paste it and adapt it to your exe.
Sebastien.
On 9/24/19 4:40 PM, Shrabani Ghosh wrote:
Yes, I have built mpfr and gmp separately and linked to the program.
Below is the cmakelist file and program. Do you think I did it correct?
# Created by the script cgal_create_CMakeLists
# This is the CMake script for compiling a set of CGAL applications.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
cmakelist file
project( executable )
cmake_minimum_required(VERSION 2.8.11)
# CGAL and its components
find_package( CGAL QUIET COMPONENTS )
if ( NOT CGAL_FOUND )
message(STATUS "This project requires the CGAL library, and will not be
compiled.")
return()
endif()
# include helper file
include( ${CGAL_USE_FILE} )
# Boost and its components
find_package( Boost REQUIRED )
find_package( GMP REQUIRED )
find_package( MPFR REQUIRED )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be
compiled.")
return()
endif()
# include for local directory
# include for local package
# Creating entries for target: executable
# ############################
add_executable( executable comparison.cpp )
add_to_cached_list( CGAL_EXECUTABLE_TARGETS executable )
# Link the executable to CGAL and third-party libraries
target_link_libraries(executable ${CGAL_LIBRARIES}
${CGAL_3RD_PARTY_LIBRARIES} )
target_link_libraries(executable ${GMP_HOME} ${MPFR_HOME} )
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
cpp file
#include <CGAL/Exact_integer.h>
#include <CGAL/Extended_homogeneous.h>
#include <CGAL/Nef_polyhedron_3.h>
#include <gmp.h>
#include <gmpxx.h>
#include <mpfr.h>
using namespace std;
typedef CGAL::Exact_integer NT;
typedef CGAL::Extended_homogeneous<NT> Kernel;
typedef CGAL::Nef_polyhedron_3<Kernel> Nef_polyhedron;
//typedef Nef_polyhedron::Plane_3 Plane_3;
typedef Kernel::Plane_3 Plane_3;
int main() {
Nef_polyhedron N1(Plane_3(2,5,7,11), Nef_polyhedron::INCLUDED);
Nef_polyhedron N2(Plane_3(2,5,7,11), Nef_polyhedron::EXCLUDED);
CGAL_assertion(N1 >= N2);
CGAL_assertion(N2 <= N1);
CGAL_assertion(N1 != N2);
CGAL_assertion(N1 > N2);
CGAL_assertion(N2 < N1);
N2 = N2.closure();
CGAL_assertion(N1==N2);
CGAL_assertion(N1>=N2);
CGAL_assertion(N1<=N2);
return 0;
}
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Cannot makefile Nef_3 examples, Shrabani Ghosh, 09/23/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Sebastien Loriot (GeometryFactory), 09/24/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Marc Glisse, 09/24/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Shrabani Ghosh, 09/24/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Shrabani Ghosh, 09/24/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Marc Glisse, 09/24/2019
- Re: [cgal-discuss] Cannot makefile Nef_3 examples, Sebastien Loriot (GeometryFactory), 09/24/2019
Archive powered by MHonArc 2.6.18.