-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
20 changed files
with
86 additions
and
1,540 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
function(addHashLibrary) | ||
|
||
add_library(hashlibrary STATIC ${CMAKE_SOURCE_DIR}/3rd_party/hash-library/sha256.cpp) | ||
set_target_properties(hashlibrary PROPERTIES POSITION_INDEPENDENT_CODE ON) | ||
|
||
endfunction(addHashLibrary) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
#rules for finding HashLibrary | ||
|
||
if(EXISTS ${CMAKE_SOURCE_DIR}/3rd_party/hash-library) | ||
|
||
include(${PROJECT_SOURCE_DIR}/cmake/3rd_party/hashlibrary.cmake) | ||
addHashLibrary() | ||
|
||
set(HASHLIBRARY_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/3rd_party/) | ||
set(HASHLIBRARY_LIBRARY hashlibrary) | ||
|
||
else() | ||
|
||
find_path(HASHLIBRARY_INCLUDE_DIR hash-library/sha256.h) | ||
find_library(HASHLIBRARY_LIBRARY NAMES hashlibrary) | ||
|
||
endif() | ||
|
||
set(HASHLIBRARY_LIBRARIES ${HASHLIBRARY_LIBRARY} ) | ||
set(HASHLIBRARY_INCLUDE_DIRS ${HASHLIBRARY_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(HashLibrary DEFAULT_MSG HASHLIBRARY_LIBRARY HASHLIBRARY_INCLUDE_DIR) | ||
|
||
mark_as_advanced(HASHLIBRARY_INCLUDE_DIR HASHLIBRARY_LIBRARY) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.