1 include_directories(../../include) 2 3 add_library( 4 bio 5 6 OBJECT 7 8 bio.c 9 bio_mem.c 10 buffer.c 11 connect.c 12 fd.c 13 file.c 14 hexdump.c 15 pair.c 16 printf.c 17 socket.c 18 socket_helper.c 19 ) 20 21 add_executable( 22 bio_test 23 24 bio_test.cc 25 26 $<TARGET_OBJECTS:test_support> 27 ) 28 29 target_link_libraries(bio_test crypto) 30 if (WIN32) 31 target_link_libraries(bio_test ws2_32) 32 endif() 33 add_dependencies(all_tests bio_test) 34