diff options
Diffstat (limited to 'tests/compilation/CompilationTests.cmake')
-rw-r--r-- | tests/compilation/CompilationTests.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/compilation/CompilationTests.cmake b/tests/compilation/CompilationTests.cmake new file mode 100644 index 0000000..a55f802 --- /dev/null +++ b/tests/compilation/CompilationTests.cmake @@ -0,0 +1,14 @@ +# This file defines all the compilation tests + +########## +# Tests for testing whether the compilation tests system works as expected. +# If at least one of those tests fails, something is wrong with the cmake scripts. + +cxx_compilation_test(compilation_test_system_test_1 SHOULD_COMPILE " +int main() { return 0; } +") + +cxx_compilation_test(compilation_test_system_test_2 SHOULD_FAIL " +int main(float i) { return foobar; } +") +######### |