mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 12:47:48 +02:00
work on tests and cmake/makefiles
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
b7b3936e56
commit
9fec2bd24b
11 changed files with 73 additions and 51 deletions
|
@ -4,7 +4,9 @@ include_directories(${CHECK_INCLUDE_DIRS})
|
|||
|
||||
# Compiler flags:
|
||||
if(APPLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-parameter -Wextra -pedantic -O0 -g -Wl,-undefined,dynamic_lookup")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -Wl,-undefined,dynamic_lookup")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -Wl,--unresolved-symbols=ignore-in-object-files")
|
||||
endif()
|
||||
|
||||
set(TEST_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
@ -77,13 +79,14 @@ add_executable(test-blinding ${test-blinding_SRCS})
|
|||
add_executable(test-elligator ${test-elligator_SRCS})
|
||||
|
||||
set(LIBS
|
||||
libi2pd
|
||||
${Boost_LIBRARIES}
|
||||
${CHECK_LDFLAGS}
|
||||
${CMAKE_REQUIRED_LIBRARIES}
|
||||
OpenSSL::SSL
|
||||
OpenSSL::Crypto
|
||||
ZLIB::ZLIB
|
||||
Threads::Threads
|
||||
libi2pd
|
||||
${CHECK_LDFLAGS}
|
||||
${CMAKE_REQUIRED_LIBRARIES}
|
||||
)
|
||||
|
||||
target_link_libraries(test-http-merge_chunked ${LIBS})
|
||||
|
@ -91,6 +94,7 @@ target_link_libraries(test-http-req ${LIBS})
|
|||
target_link_libraries(test-http-res ${LIBS})
|
||||
target_link_libraries(test-http-url_decode ${LIBS})
|
||||
target_link_libraries(test-http-url ${LIBS})
|
||||
target_link_libraries(test-base-64 ${LIBS})
|
||||
target_link_libraries(test-gost ${LIBS})
|
||||
target_link_libraries(test-gost-sig ${LIBS})
|
||||
target_link_libraries(test-x25519 ${LIBS})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue