Merge pull request #131 from xiphon/install-target-randomx-lib

CMake install target for randomx library
This commit is contained in:
tevador 2019-10-01 18:46:41 +02:00 committed by GitHub
commit f1199a9fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,9 @@ add_library(randomx
set_property(TARGET randomx PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET randomx PROPERTY CXX_STANDARD 11)
set_property(TARGET randomx PROPERTY CXX_STANDARD_REQUIRED ON)
install(TARGETS randomx
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
add_executable(randomx-tests
src/tests/tests.cpp)