mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-08-05 08:39:32 +01:00
Fix building tests, move binaries to different output directory.
This commit is contained in:
parent
103b6db717
commit
5d00ad6473
4 changed files with 14 additions and 5 deletions
|
@ -12,12 +12,15 @@ if(WITH_TESTS)
|
|||
unit_test_framework REQUIRED
|
||||
)
|
||||
|
||||
add_executable(i2pd_tests ${TESTS_SRC})
|
||||
add_executable(${TESTS_NAME} ${TESTS_SRC})
|
||||
target_link_libraries(
|
||||
i2pd_tests core ${DL_LIB} ${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
${TESTS_NAME} ${CORE_NAME} ${DL_LIB} ${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
enable_testing()
|
||||
add_test(i2pdTest i2pd_tests)
|
||||
add_test(i2pdTest ${TESTS_NAME})
|
||||
install(TARGETS
|
||||
${TESTS_NAME} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
endif()
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define BOOST_TEST_DYN_LINK
|
||||
|
||||
#include <boost/test/unit_test.hpp>
|
||||
#include "../Identity.h"
|
||||
#include "Identity.h"
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(IdentityTests)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue