Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .github/workflows/cmake-ci.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Make release

on:
push:
tags:
- '*'

jobs:
call:
name: Call check version CI
uses: LIHPC-Computational-Geometry/lihpccg-ci/.github/workflows/make-release-reusable.yml@main
11 changes: 5 additions & 6 deletions .github/workflows/spack-ci.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Spack CI

on:
workflow_dispatch:
push:
branches: [ main ]
branches:
- '**'
pull_request:
branches: [ main ]
# Allows you to run this workflow manually
workflow_dispatch:

jobs:
call:
name: Call Spack reusable workflow
name: Call Spack CI
uses: LIHPC-Computational-Geometry/lihpccg-ci/.github/workflows/spack-reusable.yml@main
with:
test-link-options: "-DVTK_7:BOOL=ON -DUSE_OPENGL_BACKEND:BOOL=ON"
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ cmake_minimum_required(VERSION 3.12)
project (VtkContrib CXX C)

include (GNUInstallDirs)

find_package (GUIToolkitsVariables)

include (cmake/version.cmake)
include (cmake/common.cmake)
include (${GUIToolkitsVariables_CMAKE_DIR}/common.cmake)

set (VtkContrib_VERSION ${VTK_CONTRIB_VERSION})

# Partie normale de cmake : réalisation de Makefiles ...

# Ici et pas ailleurs : CMAKE_VERBOSE_MAKEFILE
set (CMAKE_VERBOSE_MAKEFILE ON)
option (BUILD_SHARED_LIBS "Creation de bibliotheques dynamiques (defaut : ON)" ON)

Expand Down
54 changes: 0 additions & 54 deletions cmake/common.cmake

This file was deleted.

30 changes: 0 additions & 30 deletions cmake/export.cmake

This file was deleted.

36 changes: 0 additions & 36 deletions cmake/organization.cmake

This file was deleted.

24 changes: 0 additions & 24 deletions cmake/packaging.cmake

This file was deleted.

6 changes: 3 additions & 3 deletions cmake/version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# version.cmake : version du projet
#

set (VTK_CONTRIB_MAJOR_VERSION "4")
set (VTK_CONTRIB_MINOR_VERSION "8")
set (VTK_CONTRIB_RELEASE_VERSION "4")
set (VTK_CONTRIB_MAJOR_VERSION "5")
set (VTK_CONTRIB_MINOR_VERSION "4")
set (VTK_CONTRIB_RELEASE_VERSION "0")
set (VTK_CONTRIB_VERSION ${VTK_CONTRIB_MAJOR_VERSION}.${VTK_CONTRIB_MINOR_VERSION}.${VTK_CONTRIB_RELEASE_VERSION})


37 changes: 37 additions & 0 deletions cmake/vtkcontrib_common.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
find_package (GUIToolkitsVariables)

include (${GUIToolkitsVariables_CMAKE_DIR}/common_vtk.cmake) # Positionne VTK_7, VTK_8, VTK_9

# Compilation :
add_definitions (-DVTK_CONTRIB_VERSION="${VTK_CONTRIB_VERSION}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
if (VTK_7)
message (STATUS "========================================= UTILISATION DE VTK 7 =========================================")
if (USE_OPENGL_BACKEND)
set (MANDATORY_CXX_OPTIONS -DVTKGL -DUSE_OPENGL_BACKEND -DVTK_7) # Public
set (MANDATORY_VTK_OPTIONS "-DvtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL)" "-DvtkIOExport_AUTOINIT=1(vtkIOExportOpenGL)")
else (USE_OPENGL_BACKEND)
set (MANDATORY_CXX_OPTIONS -DVTKGL -DUSE_OPENGL2_BACKEND -DVTK_7) # Public
set (MANDATORY_VTK_OPTIONS "-DvtkRenderingCore_AUTOINIT=3(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL2)" "-DvtkIOExport_AUTOINIT=1(vtkIOExportOpenGL2)")
endif (USE_OPENGL_BACKEND)
set (MANDATORY_PRIVATE_VTK_OPTIONS -DPATCH_VTK_MATH_SOLVE_LINEAR_SYSTEM)
elseif (VTK_8)
message (STATUS "========================================= UTILISATION DE VTK 8 =========================================")
if (USE_OPENGL_BACKEND)
message (FATAL_ERROR "==> Backend OpenGL (1) incompatible avec VTK 8.")
endif (USE_OPENGL_BACKEND)
set (MANDATORY_CXX_OPTIONS -DVTKGL -DUSE_OPENGL2_BACKEND -DVTK_8) # Public
set (MANDATORY_VTK_OPTIONS -DPATCH_VTK_MATH_SOLVE_LINEAR_SYSTEM)
elseif (VTK_9)
message (STATUS "========================================= UTILISATION DE VTK 9 =========================================")
if (USE_OPENGL_BACKEND)
message (FATAL_ERROR "==> Backend OpenGL (1) incompatible avec VTK 9.")
endif (USE_OPENGL_BACKEND)
set (MANDATORY_CXX_OPTIONS -DVTKGL -DUSE_OPENGL2_BACKEND -DVTK_9) # Public
set (MANDATORY_VTK_OPTIONS -DPATCH_VTK_MATH_SOLVE_LINEAR_SYSTEM)
else (VTK_7)
message (STATUS "========================================= VERSION DE VTK NON DEFINIE =========================================")
message (FATAL_ERROR "==> UTILISEZ -DVTK_7:BOOL=ON OU -DVTK_8:BOOL=ON OU -DVTK_9:BOOL=ON A LA LIGNE DE COMMANDE")
endif (VTK_7)


83 changes: 0 additions & 83 deletions cmake/workarounds.cmake

This file was deleted.

Loading