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.38 KB
Newer Older
1
2
3
4
5
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"
                 AUTO_TEST
6
                 TEST_FILES sinus_skin.vtk brain.mha sinus.mhd
7
)
8
9

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

12
# add a specific test to run the action, save the output and compare it to expected
13
14
camitk_add_test_actionstatemachine(NAME action-reconstruction-functional-test
                                   CAMITK_SCXML action-reconstruction-functional-test.xml
15
16
                                   EXPECTED_OUTPUT_FILES action-reconstruction-output-test.vtk)

17
18
19
# On Ubuntu 16.04 LTS, the default VTK version is 6.2 not 6.3
# VTK6.2 has a bug when it saves vtk files: it does not save the proper VTK file format version
# These tests are disabled until Ubuntu LTS 18.04 is released (LTS 18.04 contains VTK 6.3)
Emmanuel Promayon's avatar
Emmanuel Promayon committed
20
if("${VTK_VERSION}" VERSION_LESS 6.3)
21
    set_tests_properties(action-reconstruction-functional-test PROPERTIES WILL_FAIL true)
22
endif()
23
24
25
26
27

# Tests fail due to OpenGL crashing when used inside a VM
if(WIN32)
    set_tests_properties(action-reconstruction-functional-test PROPERTIES WILL_FAIL true)
endif()