CMakeLists.txt 1.66 KB
Newer Older
1
2
3
4
camitk_extension(   ACTION_EXTENSION
                    NEEDS_COMPONENT_EXTENSION vtkmesh
                    DEFINES COMPILE_MESHPROCESSING_ACTION_API
                    CEP_NAME SDK
5
                    DESCRIPTION "Features some nice algorithms for mesh processing"
6
7
                    TEST_APPLICATION ${APPLICATION_TEST_ACTION}                                        
                    INCLUDE_DIRECTORIES ${CAMITK_INCLUDE_DIR}/components/vtkmesh
8
                    INSTALL_ALL_HEADERS
9
                    TEST_FILES BigEndian.hdr BigEndian.img BigEndianCompressed1.hdr BigEndianCompressed1.img biorad.pic cthead1.lsm brain.mha LittleEndian1.hdr LittleEndian1.img LittleEndianCompressed1.hdr LittleEndianCompressed1.img LittleEndianZ1.hdr mini-complex-slow1.nrrd mini-ten-nomask-slow1.nrrd mini-vector-slow1.nrrd ramp1.gipl robot.wrl structured.vtk testrgba1.nrrd truthcube.pml
10
                )
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()