CMakeLists.txt 1.68 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
camitk_extension(ACTION_EXTENSION
                 NEEDS_COMPONENT_EXTENSION vtkmesh
                 DEFINES COMPILE_MESHPROCESSING_ACTION_API
                 CEP_NAME SDK
                 DESCRIPTION "Features some nice algorithms for mesh processing"
                 INCLUDE_DIRECTORIES ${CAMITK_INCLUDE_DIR}/components/vtkmesh
                 INSTALL_ALL_HEADERS
                 AUTO_TEST
                 TEST_FILES brain.mha bassin.msh diaphragm.pml head1.STL liver-smooth.obj Mesh.off robot.wrl scissors.obj simple.vtk sinus_skin.vtk sinus_skull.vtk skull1.stl structured.vtk truthcube.pml pointcloud-with-data.vtk polydata-with-data.vtk cube-with-point-and-cell-data.vtk fieldfile.vtk check-with-color-pointdata.vtk plate-with-data.vtk female.vtk brainImageSmooth.vtk structuredgrid-with-data.vtk male.vtk cube-with-tensors.vtk imageBoundingBox.vtk binary-mesh-with-pointdata.vtk unstructured_binary_with_celldata.vtk
)
11
12

# Recursively update the shiboken path variable containing the CamiTK SDK tree structure
13
14
15
16
17
18
19
20
set(SHIBOKEN_CAMITK_SDK_PATH ${SHIBOKEN_CAMITK_SDK_PATH}:${CMAKE_CURRENT_SOURCE_DIR} CACHE INTERNAL "") 

# "Append Meshes" action will always fail as only one mesh is given in input by testaction
# "Append Meshes" needs two meshes (appends first mesh to second mesh)
# The following lines will inverse the result of the test, and therefor transform 
# a fail to a pass
# This is needed until there is a way to tell testaction that this action
# needs two mesh in input
21
if(NOT PACKAGING_NSIS AND BUILD_TESTING)
22
23
24
#TODO     set_tests_properties("action-meshprocessing-level1-18" PROPERTIES WILL_FAIL true)
#TODO     set_tests_properties("action-meshprocessing-level1-20" PROPERTIES WILL_FAIL true)
endif()