diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a854ed..41c3978 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,17 @@ ENDIF() # # Everything TEST related # +option(TEST_TREE "Turn running of ASMparseRISCV specific tests on/off" ON) + +IF(${TEST_TREE}) + enable_testing() + message(STATUS "Tree tests enabled") + include(CTest) +ELSE() + message(STATUS "Tree tests disabled") +ENDIF() + +IF (${TEST_TREE}) add_my_test(TEST test_base SOURCES tests/test_base.cpp @@ -53,3 +64,5 @@ ELSE() target_compile_options(${_test} PUBLIC -O4) ENDIF() ENDFOREACH() + +ENDIF() \ No newline at end of file