blob: 70bb29e8c2632fc518e2e468555a16924384fd6c [file] [log] [blame]
Adam Langley95c29f32014-06-20 12:00:00 -07001include_directories(../../include)
2
3add_executable(
Adam Langley4a0f0c42015-01-28 16:37:10 -08004 bssl_shim
Adam Langley95c29f32014-06-20 12:00:00 -07005
Adam Langley4a0f0c42015-01-28 16:37:10 -08006 async_bio.cc
7 bssl_shim.cc
Matthew Braithwaited2f87a72018-06-22 16:19:16 -07008 handshake_util.cc
Nick Harperb14530e2019-11-12 16:07:22 -08009 mock_quic_transport.cc
Adam Langley4a0f0c42015-01-28 16:37:10 -080010 packeted_bio.cc
Matthew Braithwaite997ff092018-06-22 14:40:15 -070011 settings_writer.cc
Adam Langley4a0f0c42015-01-28 16:37:10 -080012 test_config.cc
Matthew Braithwaitef2bc5f42018-06-22 15:53:19 -070013 test_state.cc
Adam Langley95c29f32014-06-20 12:00:00 -070014)
15
Joshua Liebow-Feeser8c7c6352018-08-26 18:53:36 -070016add_dependencies(bssl_shim global_target)
17
David Benjamin582904f2023-02-04 18:30:36 -050018target_link_libraries(bssl_shim ssl crypto)
Matthew Braithwaite548c2762018-06-22 18:53:05 -070019
David Benjamin0f4454c2022-01-26 14:17:08 -050020if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
Matthew Braithwaite548c2762018-06-22 18:53:05 -070021 add_executable(
22 handshaker
23
24 async_bio.cc
25 handshake_util.cc
26 handshaker.cc
Nick Harperb14530e2019-11-12 16:07:22 -080027 mock_quic_transport.cc
Matthew Braithwaite548c2762018-06-22 18:53:05 -070028 packeted_bio.cc
29 settings_writer.cc
30 test_config.cc
31 test_state.cc
Matthew Braithwaite548c2762018-06-22 18:53:05 -070032 )
33
Joshua Liebow-Feeser8c7c6352018-08-26 18:53:36 -070034 add_dependencies(handshaker global_target)
35
David Benjamin582904f2023-02-04 18:30:36 -050036 target_link_libraries(handshaker ssl crypto)
Steven Valdeze5388e02018-08-01 16:54:48 -040037else()
38 # Declare a dummy target for run_tests to depend on.
39 add_custom_target(handshaker)
Matthew Braithwaite548c2762018-06-22 18:53:05 -070040endif()