2020-06-03 01:15:44 +08:00
|
|
|
add_custom_target(FlangUnitTests)
|
|
|
|
set_target_properties(FlangUnitTests PROPERTIES FOLDER "Flang Unit Tests")
|
|
|
|
|
|
|
|
function(add_flang_unittest test_dirname)
|
|
|
|
add_unittest(FlangUnitTests ${test_dirname} ${ARGN})
|
|
|
|
endfunction()
|
|
|
|
|
2020-07-23 08:44:52 +08:00
|
|
|
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
|
|
|
|
add_compile_options("-Wno-suggest-override")
|
|
|
|
endif()
|
|
|
|
|
2020-07-16 21:15:07 +08:00
|
|
|
function(add_flang_nongtest_unittest test_name)
|
|
|
|
add_executable(${test_name}.test ${test_name}.cpp)
|
|
|
|
|
|
|
|
target_link_libraries(${test_name}.test ${ARGN})
|
|
|
|
|
|
|
|
add_dependencies(FlangUnitTests ${test_name}.test)
|
|
|
|
endfunction()
|
|
|
|
|
2020-06-03 01:15:44 +08:00
|
|
|
add_subdirectory(Optimizer)
|
2020-02-25 23:11:52 +08:00
|
|
|
add_subdirectory(Decimal)
|
|
|
|
add_subdirectory(Evaluate)
|
|
|
|
add_subdirectory(Runtime)
|
2020-07-13 15:01:52 +08:00
|
|
|
add_subdirectory(Lower)
|