mirror of https://github.com/PurpleI2P/i2pd.git
I2P: End-to-End encrypted and anonymous Internet
https://i2pd.website/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
607 B
26 lines
607 B
set(TESTS_SRC |
|
"Base64.cpp" |
|
"Crypto.cpp" |
|
"Identity.cpp" |
|
"Utility.cpp" |
|
) |
|
|
|
|
|
if(WITH_TESTS) |
|
find_package(Boost COMPONENTS |
|
system filesystem regex program_options date_time thread chrono |
|
unit_test_framework REQUIRED |
|
) |
|
|
|
add_executable(${TESTS_NAME} ${TESTS_SRC}) |
|
target_link_libraries( |
|
${TESTS_NAME} ${CORE_NAME} ${DL_LIB} ${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES} |
|
${CMAKE_THREAD_LIBS_INIT} |
|
) |
|
|
|
enable_testing() |
|
add_test(i2pdTest ${TESTS_NAME}) |
|
install(TARGETS |
|
${TESTS_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} |
|
) |
|
endif()
|
|
|