Skip to content

Commit db36c5d

Browse files
committed
Add custome target for hashing installed files
- Install the manifest including hashes too, if present
1 parent 994fd16 commit db36c5d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,14 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure)
647647
# See JSON-Fortran's CMakeLists.txt file to find out how to get the check target to depend
648648
# on the test executables
649649

650+
#------------------------------------
651+
# Add command to hash installed files
652+
#------------------------------------
653+
configure_file( "${CMAKE_SOURCE_DIR}/cmake/hash-installed.cmake.in" "${CMAKE_BINARY_DIR}/hash-installed.cmake"
654+
@ONLY)
655+
add_custom_target( hash_installed
656+
COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/hash-installed.cmake")
657+
650658
#---------------------------------------------------------------------------------------
651659
# Define macro for adding CAF tests, and ensuring proper flags are passed to MPI runtime
652660
#---------------------------------------------------------------------------------------
@@ -924,3 +932,7 @@ foreach(SCRIPT ${TRAVIS_SCRIPTS})
924932
lint_script("${CMAKE_SOURCE_DIR}/developer-scripts/travis" ${SCRIPT})
925933
endif()
926934
endforeach()
935+
936+
install(FILES "${CMAKE_BINARY_DIR}/sha256_install_manifest.txt"
937+
DESTINATION "${CMAKE_INSTALL_DATADIR}/opencoarrays"
938+
OPTIONAL)

0 commit comments

Comments
 (0)