mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 19:05:59 -04:00
28 lines
566 B
CMake
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})
|