-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3329c59
commit 75e8424
Showing
15 changed files
with
552 additions
and
526 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
cmake_minimum_required(VERSION 3.1 FATAL_ERROR) | ||
project(CGAL-Community-Plugins) | ||
|
||
if (NOT ParaView_BINARY_DIR) | ||
find_package(ParaView REQUIRED) | ||
endif() | ||
|
||
include(GNUInstallDirs) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}") | ||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") | ||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}") | ||
|
||
if(PARAVIEW_USE_FILE) | ||
# ParaView 5.6 | ||
# ------------ | ||
#If the plugin is used internally we don't need to include. | ||
if (NOT ParaView_BINARY_DIR) | ||
include(${PARAVIEW_USE_FILE}) | ||
endif(NOT ParaView_BINARY_DIR) | ||
add_subdirectory(Plugins/CGAL) | ||
else() | ||
# ParaView 6 or later | ||
# -------------------- | ||
# `paraview_plugin_build` uses `add_subdirectory` so it has to be in a sub-directory | ||
paraview_plugin_scan( | ||
PLUGIN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/Plugins/CGAL/CGAL.plugin" | ||
ENABLE_BY_DEFAULT ON | ||
HIDE_PLUGINS_FROM_CACHE ON | ||
PROVIDES_PLUGINS plugins | ||
REQUIRES_MODULES required_modules | ||
) | ||
|
||
foreach (module IN LISTS required_modules) | ||
if (NOT TARGET "${module}") | ||
message("Missing required module: ${module}") | ||
return () | ||
endif () | ||
endforeach () | ||
|
||
#Message("CMAKE_INSTALL_BINDIR" "${CMAKE_INSTALL_BINDIR}") | ||
#Message("CMAKE_INSTALL_LIBDIR" "${CMAKE_INSTALL_LIBDIR}") | ||
#Message("PARAVIEW_PLUGIN_SUBDIR" "${PARAVIEW_PLUGIN_SUBDIR}") | ||
|
||
paraview_plugin_build( | ||
RUNTIME_DESTINATION "${CMAKE_INSTALL_BINDIR}" | ||
LIBRARY_DESTINATION "${CMAKE_INSTALL_LIBDIR}" | ||
LIBRARY_SUBDIRECTORY "${PARAVIEW_PLUGIN_SUBDIR}" | ||
PLUGINS ${plugins}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
NAME | ||
CGALFilter | ||
DESCRIPTION | ||
Set of CGAL plugins | ||
CONDITION | ||
REQUIRES_MODULES | ||
VTK::FiltersCore | ||
VTK::CommonExecutionModel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
find_package(CGAL REQUIRED) | ||
if(CGAL_FOUND) | ||
include( ${CGAL_USE_FILE} ) | ||
endif(CGAL_FOUND) | ||
|
||
#Paraview's macro to add the plugin. It takes care of all the vtk | ||
#and paraview parts of the process, like link and integration | ||
#in the UI | ||
if(ParaView_FOUND AND PARAVIEW_USE_FILE) | ||
## ParaView 5.6 | ||
add_paraview_plugin(CGALFilter "1.0" | ||
SERVER_MANAGER_XML vtkCGALFilters.xml | ||
SERVER_MANAGER_SOURCES vtkCGAL3DPolyhedralMesher.cxx | ||
vtkCGALBoolean.cxx) | ||
|
||
target_link_libraries(CGALFilter PRIVATE CGAL::CGAL) | ||
|
||
else() | ||
## ParaView 6.0 or later | ||
set(classes | ||
vtkCGAL3DPolyhedralMesher | ||
vtkCGALBoolean) | ||
|
||
vtk_module_add_module(CGALFilters | ||
CLASSES ${classes}) | ||
|
||
paraview_add_server_manager_xmls( | ||
XMLS vtkCGALFilters.xml) | ||
|
||
# Link with CGAL | ||
target_link_libraries(CGALFilters PRIVATE CGAL::CGAL) | ||
|
||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
NAME | ||
CGALFilters | ||
DEPENDS | ||
VTK::FiltersCore | ||
VTK::FiltersGeometry | ||
VTK::CommonSystem | ||
PRIVATE_DEPENDS | ||
VTK::CommonCore |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.