File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ project(ncrypto VERSION 1.0.1)
33
44include (CTest )
55include (GNUInstallDirs )
6+ include (cmake/ncrypto-flags.cmake )
67
78if (NCRYPTO_SHARED_LIBS)
89 find_package (OpenSSL REQUIRED )
Original file line number Diff line number Diff line change 11add_library (ncrypto ncrypto.cpp engine.cpp )
2- set_target_properties (ncrypto PROPERTIES CXX_STANDARD 20 CXX_STANDARD_REQUIRED YES )
32target_link_libraries (ncrypto PUBLIC OpenSSL::SSL OpenSSL::Crypto )
43target_include_directories (ncrypto
54 PUBLIC
Original file line number Diff line number Diff line change 11include (GoogleTest )
22add_executable (basic basic.cpp )
3- set_target_properties (basic PROPERTIES CXX_STANDARD 20 CXX_STANDARD_REQUIRED YES )
43target_link_libraries (basic PRIVATE ncrypto GTest::gtest_main )
54gtest_discover_tests (basic )
65if (MSVC OR MINGW)
You can’t perform that action at this time.
0 commit comments