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.1 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 "") 

13
14
# 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
Emmanuel Promayon's avatar
Emmanuel Promayon committed
15
if("${VTK_VERSION}" VERSION_LESS 6.3)
Emmanuel Promayon's avatar
Emmanuel Promayon committed
16
    set_tests_properties(action-reconstruction-integration-test PROPERTIES WILL_FAIL true)
17
18
19
20
21
22
23
endif()

# Tests fail due to OpenGL crashing when used inside a VM
# As the test can be run directly on a "real" desktop, add the test but flag it with WILL_FAIL
if(WIN32)
    set_tests_properties(action-reconstruction-integration-test PROPERTIES WILL_FAIL true)
endif()