build: re-enable namespace-specific tests
This commit is contained in:
@@ -45,6 +45,17 @@ function(add_fx_assembly)
|
||||
target_compile_definitions(${assembly_target_name} PRIVATE ${def})
|
||||
endforeach (def)
|
||||
|
||||
foreach (ns ${arg_NAMESPACES})
|
||||
file(GLOB test_sources ${fx_source_root}/${ns}/test/*.c)
|
||||
foreach (test_file ${test_sources})
|
||||
get_filename_component(test_name ${test_file} NAME_WE)
|
||||
set(test_name ${ns}-${test_name})
|
||||
string(REPLACE "." "-" test_name ${test_name})
|
||||
add_executable(${test_name} ${test_file})
|
||||
target_link_libraries(${test_name} ${assembly_target_name})
|
||||
endforeach (test_file)
|
||||
endforeach (ns)
|
||||
|
||||
set_target_properties(${assembly_target_name} PROPERTIES
|
||||
FOLDER "${assembly_name}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user