mirror of https://github.com/CGAL/cgal
Restructure third party libraries in a table format
This commit is contained in:
parent
26bab26adf
commit
565d5413b0
|
|
@ -482,8 +482,7 @@ endif()
|
||||||
set(LIBRARIES_TO_CHECK
|
set(LIBRARIES_TO_CHECK
|
||||||
Boost GMP MPFR VTK Qt6
|
Boost GMP MPFR VTK Qt6
|
||||||
Eigen3 OpenGR libpointmatcher LEDA MPFI
|
Eigen3 OpenGR libpointmatcher LEDA MPFI
|
||||||
NTL TBB OpenCV METIS ZLIB
|
TBB OpenCV METIS ZLIB GLPK SCIP
|
||||||
Ceres GLPK SCIP OSQP
|
|
||||||
)
|
)
|
||||||
|
|
||||||
function(check_library cgal_3rdparty_lib)
|
function(check_library cgal_3rdparty_lib)
|
||||||
|
|
|
||||||
|
|
@ -167,12 +167,29 @@ function packageContainer(platforms) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function platformContainer(platforms) {
|
function platformContainer(platforms) {
|
||||||
platforms.forEach(platform => {
|
platforms.forEach(platform => {
|
||||||
const $container = $('<div>', { class: 'platform ' + platform.name }).appendTo($platformContainer);
|
const $container = $('<div>', { class: 'platform ' + platform.name }).appendTo($platformContainer);
|
||||||
$container.html("<h2>Results of " + platform.name + "</h2>");
|
$container.html("<h2>Results of " + platform.name + "</h2>");
|
||||||
$('<p>', { class: 'tplinfo', html: platform.third_party_libraries }).appendTo($container);
|
|
||||||
|
// Parse third_party_libraries and structure them in a table format
|
||||||
|
const tplString = platform.third_party_libraries.replace("TPL: ", "").trim();
|
||||||
|
const tplArray = tplString.split(",").map(tpl => tpl.trim()).filter(tpl => tpl.length > 0);
|
||||||
|
|
||||||
|
const $tplTable = $('<table>', { class: 'tpl-table' }).appendTo($container);
|
||||||
|
const $thead = $('<thead>').appendTo($tplTable);
|
||||||
|
const $tbody = $('<tbody>').appendTo($tplTable);
|
||||||
|
|
||||||
|
$('<tr>').append('<th>Third Party Libraries</th>').appendTo($thead);
|
||||||
|
|
||||||
|
let $row = $('<tr>').appendTo($tbody);
|
||||||
|
tplArray.forEach((tpl, index) => {
|
||||||
|
if (index > 0 && index % 5 === 0) {
|
||||||
|
$row = $('<tr>').appendTo($tbody);
|
||||||
|
}
|
||||||
|
$('<td>').text(tpl).appendTo($row);
|
||||||
|
});
|
||||||
|
|
||||||
const letters = ['n', 'w', 'o', 'r'];
|
const letters = ['n', 'w', 'o', 'r'];
|
||||||
letters.forEach(letter => {
|
letters.forEach(letter => {
|
||||||
const $letterContainer = $('<div>', { class: 'letter_container ' + letter }).appendTo($container);
|
const $letterContainer = $('<div>', { class: 'letter_container ' + letter }).appendTo($container);
|
||||||
|
|
|
||||||
|
|
@ -116,3 +116,35 @@ TABLE.result TD > a.package_name {
|
||||||
.platform-link {
|
.platform-link {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Summary Page */
|
||||||
|
|
||||||
|
.tpl-table {
|
||||||
|
width: auto;
|
||||||
|
border-collapse: collapse;
|
||||||
|
margin-top: 10px;
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tpl-table th, .tpl-table td {
|
||||||
|
border: 1px solid #e0e0e0; /* Couleur légèrement différente */
|
||||||
|
padding: 4px 8px;
|
||||||
|
text-align: left;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tpl-table tr:nth-child(even) {
|
||||||
|
background-color: #fafafa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tpl-table tr:hover {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tpl-table th {
|
||||||
|
padding-top: 8px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
background-color: #f7f7f7;
|
||||||
|
color: #333;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,6 @@ create_single_source_cgal_program("test_triangulation_tds_3.cpp")
|
||||||
create_single_source_cgal_program("test_io_tds3.cpp")
|
create_single_source_cgal_program("test_io_tds3.cpp")
|
||||||
|
|
||||||
if(TARGET CGAL::TBB_support)
|
if(TARGET CGAL::TBB_support)
|
||||||
message(STATUS "Third-parties libraries TBB ${TBB_VERSION}")
|
message(STATUS "Found TBB")
|
||||||
target_link_libraries(test_triangulation_tds_3 PUBLIC CGAL::TBB_support)
|
target_link_libraries(test_triangulation_tds_3 PUBLIC CGAL::TBB_support)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue