File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ CPMAddPackage(
2323message (STATUS "BoringSSL source dir: ${boringssl_SOURCE_DIR} " )
2424include_directories (${boringssl_SOURCE_DIR} /include )
2525
26+ add_subdirectory (src)
27+ add_library (ncrypto::ncrypto ALIAS ncrypto)
28+
2629if (NCRYPTO_TESTING)
2730 CPMAddPackage(
2831 NAME GTest
@@ -36,9 +39,6 @@ if (NCRYPTO_TESTING)
3639 add_subdirectory (tests)
3740endif ()
3841
39- add_subdirectory (src)
40- add_library (ncrypto::ncrypto ALIAS ncrypto)
41-
4242install (
4343 FILES include /ncrypto.h
4444 DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} "
Original file line number Diff line number Diff line change 11add_library (ncrypto ncrypto.cpp engine.cpp)
2- target_link_libraries (ncrypto boringssl)
2+ target_link_libraries (ncrypto
3+ ${boringssl_BINARY_DIR} /ssl/libssl.a
4+ ${boringssl_BINARY_DIR} /crypto/libcrypto.a
5+ )
36
47target_include_directories (ncrypto
58 PUBLIC
Original file line number Diff line number Diff line change 11include (GoogleTest)
22include (CTest)
33add_executable (basic basic.cpp)
4- target_link_libraries (
5- basic
6- GTest::gtest_main
7- )
8- target_link_libraries (basic ncrypto)
4+ target_link_libraries (basic PRIVATE ncrypto gtest gtest_main)
95add_test (basic_test basic)
106gtest_discover_tests(basic)
You can’t perform that action at this time.
0 commit comments