33 lines
1.1 KiB
Diff
Executable File
33 lines
1.1 KiB
Diff
Executable File
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 893bca7..83ff477 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -562,7 +562,7 @@ endif()
|
|
|
|
# Add minimal googletest targets. The provided one has many side-effects, and
|
|
# googletest has a very straightforward build.
|
|
-add_library(boringssl_gtest third_party/googletest/src/gtest-all.cc)
|
|
+add_library(boringssl_gtest STATIC third_party/googletest/src/gtest-all.cc)
|
|
target_include_directories(boringssl_gtest PRIVATE third_party/googletest)
|
|
|
|
include_directories(third_party/googletest/include)
|
|
@@ -649,3 +649,18 @@ add_custom_target(
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
DEPENDS all_tests bssl_shim handshaker fips_specific_tests_if_any
|
|
USES_TERMINAL)
|
|
+
|
|
+install(TARGETS crypto ssl
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib)
|
|
+
|
|
+option(INSTALL_HEADERS "Install headers" ON)
|
|
+if(INSTALL_HEADERS)
|
|
+ install(DIRECTORY include/ DESTINATION include)
|
|
+endif()
|
|
+
|
|
+option(INSTALL_TOOLS "Install bssl executable" OFF)
|
|
+if(INSTALL_TOOLS)
|
|
+ install(TARGETS bssl DESTINATION tools/boringssl)
|
|
+endif()
|