libSDL2pp/tests/CMakeLists.txt
2014-02-11 05:51:15 +04:00

28 lines
566 B
CMake

# header tests: these just include specific headers to check if
# they are compilable (e.g., includes and forward declarations are
# complete and do not require extra includes)
SET(HEADER_TESTS
hdr_exception
hdr_point
hdr_rect
hdr_renderer
hdr_sdl
hdr_sdl2pp
hdr_texture
hdr_window
)
FOREACH(TEST ${HEADER_TESTS})
ADD_EXECUTABLE(${TEST} ${TEST}.cc)
ENDFOREACH(TEST ${TESTS})
SET(TESTS
test_pointrect
)
FOREACH(TEST ${TESTS})
ADD_EXECUTABLE(${TEST} ${TEST}.cc)
TARGET_LINK_LIBRARIES(${TEST} SDL2pp)
ADD_TEST(${TEST} ${TEST})
ENDFOREACH(TEST ${TESTS})