Skip to content

Commit

Permalink
tested with CGAL-6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Nov 19, 2024
1 parent 56e8cce commit d619167
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion code/method/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
find_package(CGAL REQUIRED)
if (CGAL_FOUND)
message(STATUS "Found CGAL ${CGAL_VERSION}")
include(${CGAL_USE_FILE})
target_link_libraries(${PROJECT_NAME} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES})
else ()
message(FATAL_ERROR "CGAL is required.")
Expand Down
4 changes: 2 additions & 2 deletions code/method/alpha_shape_CGAL4.11_and_later.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class Alpha_shape_2 : public Dt
typedef Type_of_alpha FT;

//check simplices are correctly instantiated
CGAL_static_assertion( (boost::is_same<NT, typename Dt::Face::NT>::value) );
CGAL_static_assertion( (boost::is_same<NT, typename Dt::Vertex::NT>::value) );
static_assert( (boost::is_same<NT, typename Dt::Face::NT>::value) );
static_assert( (boost::is_same<NT, typename Dt::Vertex::NT>::value) );

typedef typename Dt::Point Point;

Expand Down
1 change: 1 addition & 0 deletions code/renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES

target_include_directories(${PROJECT_NAME} PRIVATE ${POLYFIT_glew_DIR}/include)

set(OpenGL_GL_PREFERENCE GLVND)
find_package(OpenGL REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE ${OPENGL_LIBRARIES} basic math model 3rd_glew)

Expand Down

0 comments on commit d619167

Please sign in to comment.