Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

CMakeLists.txt 1.91 KB
Newer Older
1
2
3
4
camitk_extension(ACTION_EXTENSION
                 DEFINES COMPILE_RECONSTRUCTION_ACTION_API
                 CEP_NAME SDK
                 DESCRIPTION "Use marching cube algorithm to create a surfacic mesh from a volumic image"
5
                 ENABLE_AUTO_TEST
6
                 TEST_FILES sinus_skin.vtk brain.mha sinus.mhd
7
                 ENABLE_INTEGRATION_TEST
8
)
9
10

# Recursively update the shiboken path variable containing the CamiTK SDK tree structure
11
12
set(SHIBOKEN_CAMITK_SDK_PATH ${SHIBOKEN_CAMITK_SDK_PATH}:${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "") 

Emmanuel Promayon's avatar
Emmanuel Promayon committed
13
14
15
16
# --------------------------------
# --- Specific test management ---
# --------------------------------

17
if(NOT "${VTK_VERSION}" VERSION_EQUAL 6.3)
Emmanuel Promayon's avatar
Emmanuel Promayon committed
18
    message(WARNING "Disabling test action-reconstruction-integration-test\n"
19
20
                    "Reason: VTK version is not equals than 6.3\n"
                    "VTK 6.2 has a bug when it saves vtk files: it does not save the proper VTK file format version\n"
Emmanuel Promayon's avatar
Emmanuel Promayon committed
21
                    "On Ubuntu 16.04 LTS, the default VTK version is 6.2 not 6.3.\n"
22
                    "Ubuntu 16.04 LTS is supported but these tests will fail if not disabled\n"
23
                    "VTK 7 has a different file format version, which is written in the header\n"
24
25
                    "On debian buster, the default VTK version is 7.1 not 6.3\n"
                    "Debian buster is supported but these tests will fail if not disabled\n")
Emmanuel Promayon's avatar
Emmanuel Promayon committed
26
    set_tests_properties(action-reconstruction-integration-test PROPERTIES DISABLED true)
27
28
29
endif()

if(WIN32)
Emmanuel Promayon's avatar
Emmanuel Promayon committed
30
31
32
33
34
    message(WARNING "Disabling test action-reconstruction-integration-test\n"
                    "Reason: WIN32 OpenGL failure on a VM\n"
                    "This test fails when run inside a VM due to OpenGL crash.\n"
                    "This test passes when run directly from a physical windows machine.\n")
    set_tests_properties(action-reconstruction-integration-test PROPERTIES DISABLED true)
35
endif()