build: build am for multiple platform in parallel
This commit is contained in:
parent
6ab5d4c156
commit
a54c0d6480
19 changed files with 206 additions and 146 deletions
|
@ -4,14 +4,11 @@ set(TEST_SOURCES
|
|||
)
|
||||
|
||||
foreach(TEST IN LISTS TEST_SOURCES)
|
||||
add_executable(${TEST} ${TEST}.c)
|
||||
target_link_libraries(${TEST} am-${ARCH} klib m)
|
||||
target_include_directories(${TEST}
|
||||
PRIVATE $<TARGET_PROPERTY:am_interface,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
PRIVATE $<TARGET_PROPERTY:klib_interface,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
)
|
||||
# TODO: Run tests in other configurations
|
||||
if(__PLATFORM_NATIVE__)
|
||||
add_executable(${TEST} ${TEST}.c)
|
||||
target_link_libraries(${TEST} PRIVATE am_interface klib_interface klib m)
|
||||
target_link_libraries(${TEST} PRIVATE am-native)
|
||||
add_test(NAME ${TEST} COMMAND ${TEST})
|
||||
endif()
|
||||
endforeach()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue