Skip to content

Commit

Permalink
Added CGAL to CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
denizdiktas committed Jun 14, 2023
1 parent 84f614a commit 947d46c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Arrangement_on_surface_2/demo/earth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,29 @@ set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/opengl/earth")

find_package(Qt6 REQUIRED COMPONENTS Core Gui OpenGL OpenGLWidgets Widgets)

# 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()


# Boost and its components
find_package( Boost REQUIRED )

if ( NOT Boost_FOUND )

message(STATUS "This project requires the Boost library, and will not be compiled.")

return()

endif()


qt_standard_project_setup()

qt_add_executable(earth
Expand Down Expand Up @@ -41,6 +64,7 @@ target_link_libraries(earth PRIVATE
Qt6::OpenGL
Qt6::OpenGLWidgets
Qt6::Widgets
CGAL::CGAL
)


Expand Down

0 comments on commit 947d46c

Please sign in to comment.