ADD: make tests enable/disable
This commit is contained in:
parent
630e511489
commit
aba38cb8b6
@ -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()
|
Loading…
Reference in New Issue
Block a user