Commit cd56f648 authored by Chao Liu's avatar Chao Liu
Browse files

update cmake for example and test

parent eb6947c2
set(MAGIC_NUMBER_DIVISION_SOURCE
magic_number_division.cpp
)
get_filename_component(MAGIC_NUMBER_DIVISION ${MAGIC_NUMBER_DIVISION_SOURCE} NAME_WE)
add_test_executable(test_${MAGIC_NUMBER_DIVISION} ${MAGIC_NUMBER_DIVISION_SOURCE})
target_link_libraries(test_${MAGIC_NUMBER_DIVISION} PRIVATE host_tensor)
add_test_executable(test_magic_number_division magic_number_division.cpp)
target_link_libraries(test_magic_number_division PRIVATE host_tensor)
set(REFERENCE_CONV_FWD_SOURCE
reference_conv_fwd.cpp
)
get_filename_component(REFERENCE_CONV_FWD ${REFERENCE_CONV_FWD_SOURCE} NAME_WE)
add_test_executable(test_${REFERENCE_CONV_FWD} ${REFERENCE_CONV_FWD_SOURCE})
target_link_libraries(test_${REFERENCE_CONV_FWD} PRIVATE host_tensor)
add_test_executable(test_reference_conv_fwd reference_conv_fwd.cpp)
target_link_libraries(test_reference_conv_fwd PRIVATE host_tensor)
set(SPACE_FILLING_CURVE_SOURCE
space_filling_curve.cpp
)
get_filename_component(SPACE_FILLING_CURVE ${SPACE_FILLING_CURVE_SOURCE} NAME_WE)
add_test_executable(test_${SPACE_FILLING_CURVE} ${SPACE_FILLING_CURVE_SOURCE})
add_test_executable(test_space_filling_curve space_filling_curve.cpp)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment