diff options
| author | _ov4 <ov4@ov4.one> | 2026-10-16 20:53:47 +0800 |
|---|---|---|
| committer | _ov4 <ov4@ov4.one> | 2026-10-16 20:53:47 +0800 |
| commit | 1db81d50e8c664d0707491699485cfb23a0b5907 (patch) | |
| tree | 9ca40c5853b11c0c510bd72311085ffad9291199 /CMakeLists.txt | |
| parent | e2c65706e61be09ddb7eeb28cd1957acd4317bcf (diff) | |
test(compiler): add reproducible fixture runner and CTest integration
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 965bb0b..e5bae31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,6 +112,12 @@ target_link_libraries(cpsc PRIVATE include(cmake/NativeCompiler.cmake) +option(BUILD_TESTING "Enable compiler conformance tests" OFF) +if(BUILD_TESTING) + enable_testing() + add_subdirectory(tests) +endif() + include(cmake/Manual.cmake) configure_file(cmake/Install.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/Install.cmake" @ONLY) |
