pull/136/head
Alexander Shishenko 2016-02-12 02:30:45 +03:00
parent 30929d49de
commit 59287d15ce
No known key found for this signature in database
GPG Key ID: 5165F41B94E12C76
1 changed files with 7 additions and 7 deletions

View File

@ -132,8 +132,8 @@ if(BUILD_TESTING)
add_executable(cryptest $<TARGET_OBJECTS:cryptest-object>) add_executable(cryptest $<TARGET_OBJECTS:cryptest-object>)
target_link_libraries(cryptest cryptopp-static) target_link_libraries(cryptest cryptopp-static)
file(COPY ${CMAKE_SOURCE_DIR}/TestData DESTINATION ${PROJECT_BINARY_DIR}) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TestData DESTINATION ${PROJECT_BINARY_DIR})
file(COPY ${CMAKE_SOURCE_DIR}/TestVectors DESTINATION ${PROJECT_BINARY_DIR}) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/TestVectors DESTINATION ${PROJECT_BINARY_DIR})
add_test(NAME cryptest COMMAND $<TARGET_FILE:cryptest> v) add_test(NAME cryptest COMMAND $<TARGET_FILE:cryptest> v)
endif() endif()
@ -144,13 +144,13 @@ endif()
if(BUILD_DOCUMENTATION) if(BUILD_DOCUMENTATION)
find_package(Doxygen REQUIRED) find_package(Doxygen REQUIRED)
set(in_source_DOCS_DIR "${CMAKE_SOURCE_DIR}/html-docs") set(in_source_DOCS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/html-docs")
set(out_source_DOCS_DIR "${PROJECT_BINARY_DIR}/html-docs") set(out_source_DOCS_DIR "${PROJECT_BINARY_DIR}/html-docs")
add_custom_target(docs ALL add_custom_target(docs ALL
COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile -d CRYPTOPP_DOXYGEN_PROCESSING COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile -d CRYPTOPP_DOXYGEN_PROCESSING
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
SOURCES ${CMAKE_SOURCE_DIR}/Doxyfile SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile
) )
if(NOT ${in_source_DOCS_DIR} STREQUAL ${out_source_DOCS_DIR}) if(NOT ${in_source_DOCS_DIR} STREQUAL ${out_source_DOCS_DIR})
@ -183,8 +183,8 @@ install(EXPORT ${export_name} DESTINATION "lib/cmake/cryptopp")
# Tests # Tests
if(BUILD_TESTING) if(BUILD_TESTING)
install(TARGETS cryptest DESTINATION ${CMAKE_INSTALL_BINDIR}) install(TARGETS cryptest DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY ${CMAKE_SOURCE_DIR}/TestData DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cryptopp) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/TestData DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cryptopp)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/TestVectors DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cryptopp) install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/TestVectors DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/cryptopp)
endif() endif()