mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 04:37:50 +02: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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue