CMakeLists.txt 917 Bytes
Newer Older
1
# enable ctest and doctest test discovery
Tobias Lasser's avatar
Tobias Lasser committed
2
include(CTest)
3
4
include(doctest)

5
6
add_custom_target(
    run-tests-core
7
8
9
10
    COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure --schedule-random
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    DEPENDS build-tests-core
    USES_TERMINAL
11
12
    COMMENT "Build and run the tests from module 'core'."
)
13
14

add_custom_target(build-tests-core)
Tobias Lasser's avatar
Tobias Lasser committed
15

16
17
18
19
20
21
22
23
24
25
26
27
28
ELSA_DOCTEST(elsaDefines)
ELSA_DOCTEST(VolumeDescriptor)
ELSA_DOCTEST(PlanarDetectorDescriptor)
ELSA_DOCTEST(IdenticalBlocksDescriptor)
ELSA_DOCTEST(PartitionDescriptor)
ELSA_DOCTEST(RandomBlocksDescriptor)
ELSA_DOCTEST(LinearOperator)
ELSA_DOCTEST(StrongTypes)
ELSA_DOCTEST(Geometry)
ELSA_DOCTEST(ExpressionTemplates)
ELSA_DOCTEST(DataHandlers)
ELSA_DOCTEST(DataHandlerMap)
ELSA_DOCTEST(DataContainer)
29
ELSA_DOCTEST(DataContainerFormatter)
30
ELSA_DOCTEST(CartesianIndices)
31
ELSA_DOCTEST(Bessel)
David Frank's avatar
David Frank committed
32
ELSA_DOCTEST(Math)
33
ELSA_DOCTEST(Statistics)