summaryrefslogtreecommitdiff
path: root/benchmarks/apib/files/patch-test_CMakeLists.txt
blob: 89b3653c9a15c861c0919a5315ab4685cc89871e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- test/CMakeLists.txt.orig	2020-04-15 05:06:21 UTC
+++ test/CMakeLists.txt
@@ -3,14 +3,14 @@ add_library(
   test_server.cc
   test_server.h
 )
-target_link_libraries(testserver_lib PUBLIC common -lev -lssl.1.1 -lcrypto.1.1 -lhttp_parser)
+target_link_libraries(testserver_lib PUBLIC common -lev -lpthread -lssl -lcrypto -lhttp_parser)
 
 add_library(
   keygen_lib OBJECT
   test_keygen.cc
   test_keygen.h
 )
-target_link_libraries(keygen_lib PUBLIC common -lssl.1.1 -lcrypto.1.1)
+target_link_libraries(keygen_lib PUBLIC common -lssl -lcrypto)
 
 add_executable(
   testserver
@@ -22,7 +22,6 @@ add_executable(
   iotest
   io_test.cc
 )
-add_dependencies(iotest gtest)
 target_link_libraries(iotest testserver_lib io cpu common base64 -lgtest)
 add_test(iotest iotest)
 
@@ -30,6 +29,10 @@ add_executable(
   tlstest
   tls_test.cc
 )
-add_dependencies(tlstest gtest)
 target_link_libraries(tlstest testserver_lib io cpu common keygen_lib base64 -lgtest)
 add_test(tlstest tlstest)
+
+install(TARGETS
+  testserver
+  DESTINATION bin
+)