-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: dissolved the dual module and plugin nature for LibiglCopyleft
- Loading branch information
1 parent
0e20c32
commit dec6255
Showing
8 changed files
with
57 additions
and
109 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,57 @@ | ||
add_subdirectory (../src ./bin/) | ||
if(NOT Eigen3_FOUND) | ||
vtk_module_find_package(PACKAGE Eigen3 VERSION 3.3 CONFIG_MODE PRIVATE) | ||
endif() | ||
|
||
vtk_module_find_package(PACKAGE CGAL VERSION 5.1.1 CONFIG_MODE PRIVATE) | ||
|
||
if(NOT DEFINED LIBIGL_DIR) | ||
message(FATAL_ERROR "The CMake variable LIBIGL_DIR is undefined.") | ||
endif() | ||
|
||
if(${LIBIGL_DIR} STREQUAL "") | ||
message(FATAL_ERROR "The CMake variable LIBIGL_DIR is an empty string.") | ||
endif() | ||
|
||
if(NOT TARGET igl::core) | ||
include(LibiglOptions) | ||
add_subdirectory(${LIBIGL_DIR} ${CMAKE_BINARY_DIR}/bin/libigl) | ||
endif() | ||
|
||
# Define content | ||
set(classes | ||
stkLibiglBoolean3DMesher | ||
) | ||
|
||
vtk_module_add_module(ParaView::stkLibiglCopyleft | ||
CLASSES ${classes} | ||
PRIVATE_HEADERS ${private_headers} | ||
) | ||
|
||
if(CGAL_FOUND) | ||
include(${CGAL_USE_FILE}) | ||
|
||
# Activate concurrency ? (turned ON by default) | ||
option(CGAL_ACTIVATE_CONCURRENCY | ||
"Enable concurrency" | ||
ON) | ||
|
||
vtk_module_definitions(ParaView::stkLibiglCopyleft PRIVATE NOMINMAX) | ||
|
||
# Link with CGAL | ||
vtk_module_link(ParaView::stkLibiglCopyleft PUBLIC CGAL::CGAL) | ||
|
||
if(CGAL_ACTIVATE_CONCURRENCY) | ||
if (NOT TARGET TBB::tbb) | ||
find_package(TBB REQUIRED) | ||
endif () | ||
|
||
if(TBB_FOUND) | ||
vtk_module_definitions(ParaView::stkLibiglCopyleft PRIVATE CGAL_LINKED_WITH_TBB) | ||
vtk_module_link(ParaView::stkLibiglCopyleft PRIVATE TBB::tbbmalloc TBB::tbb) | ||
endif(TBB_FOUND) | ||
endif(CGAL_ACTIVATE_CONCURRENCY) | ||
endif(CGAL_FOUND) | ||
|
||
vtk_module_include(ParaView::stkLibiglCopyleft PRIVATE ${LIBIGL_DIR}/include) | ||
|
||
vtk_module_link(ParaView::stkLibiglCopyleft PUBLIC Eigen3::Eigen) |
File renamed without changes.
File renamed without changes.
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.