File tree Expand file tree Collapse file tree 6 files changed +52771
-0
lines changed
Installation/cmake/modules
examples/Point_set_processing_3 Expand file tree Collapse file tree 6 files changed +52771
-0
lines changed Original file line number Diff line number Diff line change 1+ if ( NOT (OpenGR_LIBRARIES AND OpenGR_INCLUDE_DIR) )
2+
3+ # look for headers
4+ if (NOT OpenGR_INCLUDE_DIR)
5+ find_path (OpenGR_INC_DIR
6+ NAMES "super4pcs/shared4pcs.h" )
7+
8+ if (NOT OpenGR_INC_DIR)
9+ message (STATUS "Can not find OpenGR include directory" )
10+ else ()
11+ message (STATUS "Found OpenGR headers in ${OpenGR_INC_DIR} " )
12+ set (OpenGR_INCLUDE_DIR "${OpenGR_INC_DIR} " CACHE PATH "Path to OpenGR headers files" )
13+ endif ()
14+ endif ()
15+
16+ # look for library
17+ if (NOT OpenGR_LIBRARIES)
18+ find_library (OpenGR_algo_LIBRARY
19+ NAMES opengr_algo )
20+
21+ if (NOT OpenGR_algo_LIBRARY)
22+ message (STATUS "Can not find OpenGR libraries" )
23+ else ()
24+ message (STATUS "Found OpenGR algorithm library: ${OpenGR_algo_LIBRARY} " )
25+ set (OpenGR_LIBRARIES "${OpenGR_algo_LIBRARY} " CACHE PATH "OpenGR libraries" )
26+ endif ()
27+ endif ()
28+
29+ endif ()
30+
31+ if ( OpenGR_LIBRARIES AND OpenGR_INCLUDE_DIR )
32+ set (OpenGR_FOUND ON )
33+ endif ()
Original file line number Diff line number Diff line change @@ -82,6 +82,17 @@ if ( CGAL_FOUND )
8282 include ( ${EIGEN3_USE_FILE} )
8383 endif ()
8484
85+ if (EIGEN3_FOUND)
86+ find_package (OpenGR )
87+ if (OpenGR_FOUND)
88+ include_directories (SYSTEM ${OpenGR_INCLUDE_DIR} )
89+ create_single_source_cgal_program ( "registration_with_OpenGR.cpp" )
90+ target_link_libraries ("registration_with_OpenGR" PRIVATE ${OpenGR_LIBRARIES} )
91+ else ()
92+ message (STATUS "NOTICE: registration_with_OpenGR requires OpenGR, and will not be compiled." )
93+ endif ()
94+ endif ()
95+
8596 if (EIGEN3_FOUND OR LAPACK_FOUND)
8697 # Executables that require Eigen or BLAS and LAPACK
8798 create_single_source_cgal_program ( "jet_smoothing_example.cpp" )
You can’t perform that action at this time.
0 commit comments