mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Merge branch 'header-tests'
Conflicts: tests/CMakeLists.txt
This commit is contained in:
commit
ef152c2a84
@ -1,22 +1,3 @@
|
||||
# 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
|
||||
header_audio
|
||||
header_exception
|
||||
header_point
|
||||
header_rect
|
||||
header_renderer
|
||||
header_rwops
|
||||
header_containerrwops
|
||||
header_streamrwops
|
||||
header_sdl
|
||||
header_sdl2pp
|
||||
header_texture
|
||||
header_wav
|
||||
header_window
|
||||
)
|
||||
|
||||
# simple command-line tests
|
||||
SET(CLI_TESTS
|
||||
test_pointrect
|
||||
@ -31,9 +12,14 @@ SET(GUI_TESTS
|
||||
|
||||
ADD_DEFINITIONS(-DTESTDATA_DIR="${PROJECT_SOURCE_DIR}/testdata")
|
||||
|
||||
FOREACH(TEST ${HEADER_TESTS})
|
||||
ADD_EXECUTABLE(${TEST} ${TEST}.cc)
|
||||
ENDFOREACH(TEST ${TESTS})
|
||||
# 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)
|
||||
FOREACH(HEADER ${LIBRARY_HEADERS})
|
||||
STRING(REGEX REPLACE [^a-zA-Z0-9] _ HEADER_NORMALIZED ${HEADER})
|
||||
CONFIGURE_FILE(header_test.cc.in ${HEADER_NORMALIZED}_test.cc)
|
||||
ADD_EXECUTABLE(${HEADER_NORMALIZED}_test ${HEADER_NORMALIZED}_test.cc)
|
||||
ENDFOREACH(HEADER ${TESTS})
|
||||
|
||||
FOREACH(TEST ${CLI_TESTS})
|
||||
ADD_EXECUTABLE(${TEST} ${TEST}.cc)
|
||||
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Audio.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Exception.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Point.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Rect.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Renderer.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/RWops.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/SDL2pp.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
#include <SDL2pp/SDL.hh>
|
||||
#include <@HEADER@>
|
||||
|
||||
int main() {
|
||||
return 0;
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Texture.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Wav.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include <SDL2pp/Window.hh>
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user