external/boringssl/crypto/bio/CMakeLists.txt
raw| 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 | if(ENABLE_TESTS) |
| 22 | add_executable( |
| 23 | bio_test |
| 24 | |
| 25 | bio_test.cc |
| 26 | |
| 27 | $<TARGET_OBJECTS:test_support> |
| 28 | ) |
| 29 | |
| 30 | target_link_libraries(bio_test crypto) |
| 31 | if (WIN32) |
| 32 | target_link_libraries(bio_test ws2_32) |
| 33 | endif() |
| 34 | add_dependencies(all_tests bio_test) |
| 35 | endif() |