CMakeLists.txt 1.37 KB
Newer Older
1
if (WIN32)
2
    if(CMAKE_CL_64)
3
        # for 64 bits platform, enable big obj (.o) handling, in order to correctly compile this (heavy) project
4
        if (MSVC)
5
6
7
8
            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
        elseif(MINGW)
            set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -finline-functions")
        endif()
9
    endif()
10
11
endif()

12
camitk_extension(   ACTION_EXTENSION
saubatn's avatar
saubatn committed
13
                    NEEDS_ITK
14
                    CXX_FLAGS "-w"
saubatn's avatar
saubatn committed
15
16
                    CEP_NAME CEP_IMAGING
                    DESCRIPTION "This action features basic ITK image processing filters"
17
                    TEST_APPLICATION ${APPLICATION_TEST_ACTION}
saubatn's avatar
saubatn committed
18
                    DEFINES COMPILE_ITKFILTER_API
19
                    TEST_FILES bassin.msh BigEndian.hdr BigEndian.img BigEndianCompressed1.hdr BigEndianCompressed1.img brain.mha diaphragm.pml head1.STL LittleEndian1.hdr LittleEndian1.img LittleEndianCompressed1.hdr LittleEndianCompressed1.img LittleEndianZ1.hdr liver-smooth.obj Mesh.off mini-ten-nomask-slow1.nrrd mini-vector-slow1.nrrd mixed_3D_beam.msh ramp1.gipl robot.wrl scissors.obj simple.vtk sinus_skin.vtk sinus_skull.vtk skull1.stl structured.vtk testrgba1.nrrd truthcube.pml
20
)
lealv's avatar
lealv committed
21

22
# TODO fix this (good example of exception handling coming from itk!)
23
24
25
if(NOT PACKAGING_NSIS AND BUILD_TESTING)
    set_tests_properties("action-itkfilters-level1-27" PROPERTIES WILL_FAIL true)
endif()
lealv's avatar
lealv committed
26