gplate/tags/tests/CMakeLists.txt
author Gary Kramlich <grim@reaperworld.com>
Sun Jul 04 03:34:39 2010 -0500 (22 months ago)
changeset 400 0938cb5d076b
parent 399 6042cc7c5374
permissions -rw-r--r--
the start of the test name standardization

refs #15
grim@386
     1
enable_testing()
grim@386
     2
grim@389
     3
# define the static library for tag testing
grim@400
     4
add_library(test-gplate-tag STATIC
grim@400
     5
	test-gplate-tag.c
grim@389
     6
)
grim@400
     7
target_link_libraries(test-gplate-tag gplate)
grim@389
     8
grim@389
     9
# add the text tag tests
grim@400
    10
add_executable(test-gplate-text-tag test-gplate-text-tag.c)
grim@400
    11
target_link_libraries(test-gplate-text-tag test-gplate-tag)
grim@400
    12
list(APPEND TAG_TESTS test-gplate-text-tag)
grim@386
    13
grim@389
    14
# add the variable tag tests
grim@400
    15
add_executable(test-gplate-variable-tag test-gplate-variable-tag.c)
grim@400
    16
target_link_libraries(test-gplate-variable-tag test-gplate-tag)
grim@400
    17
list(APPEND TAG_TESTS test-gplate-variable-tag)
grim@389
    18
grim@396
    19
# add the comment tag tests
grim@400
    20
add_executable(test-gplate-comment-tag test-gplate-comment-tag.c)
grim@400
    21
target_link_libraries(test-gplate-comment-tag test-gplate-tag)
grim@400
    22
list(APPEND TAG_TESTS test-gplate-comment-tag)
grim@396
    23
grim@396
    24
# add the tests for gtester
grim@400
    25
add_test(GPlateTagTests
grim@400
    26
         ${GTESTER} -k --verbose -o test-gplate-tag.log
grim@400
    27
         ${TAG_TESTS}
grim@400
    28
)
grim@396
    29