Files
ivy/test/CMakeLists.txt

14 lines
487 B
CMake
Raw Permalink Normal View History

2025-04-11 13:41:33 +01:00
file(GLOB test_sources *.c)
foreach (test_file ${test_sources})
get_filename_component(test_name ${test_file} NAME_WE)
add_executable(${test_name} ${test_file})
2025-05-09 14:01:41 +01:00
target_link_libraries(${test_name} ivy-common ivy-diag ivy-lang ivy-asm ivy-vm mie)
2025-04-11 13:41:33 +01:00
set_target_properties(${test_name} PROPERTIES
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/test"
)
endforeach (test_file)