summaryrefslogtreecommitdiffstats
path: root/hl/c++/examples/CMakeTests.cmake
blob: dc279e5f8ce5a7faa1e2d3bdb620901050d6c0fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

##############################################################################
##############################################################################
###           T E S T I N G                                                ###
##############################################################################
##############################################################################
# Remove any output file left over from previous test run
add_test (
    NAME cpp_hl_ex_ptExampleFL-clear-objects
    COMMAND    ${CMAKE_COMMAND}
        -E remove 
            PTcppexampleFL.h5
)

add_test (NAME cpp_hl_ex_ptExampleFL COMMAND $<TARGET_FILE:ptExampleFL>)
set_tests_properties (cpp_hl_ex_ptExampleFL PROPERTIES DEPENDS cpp_hl_ex_ptExampleFL-clear-objects)