forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/shared model cmake (hyperledger-iroha#1018)
* rework shared model cmake as a separate project fix import, remove unnecessary code refactor remove unnecessary import * remove optional from dependencies * Add tests to shared_model * add git ignore * fix python and java tests Signed-off-by: Victor Drobny <[email protected]>
- Loading branch information
1 parent
8e7a2b8
commit 2f7e92a
Showing
14 changed files
with
143 additions
and
51 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 |
---|---|---|
@@ -1,4 +1 @@ | ||
add_library(generator generator.cpp) | ||
target_link_libraries(generator | ||
common | ||
) |
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,2 @@ | ||
build/* | ||
external/* |
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
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
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,4 @@ | ||
#!/bin/bash | ||
rm ../schema/*.{cc,h} | ||
rm -rf external | ||
rm -rf build |
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,38 @@ | ||
find_package(PackageHandleStandardArgs) | ||
|
||
include(ExternalProject) | ||
set(EP_PREFIX "${PROJECT_SOURCE_DIR}/external") | ||
set_directory_properties(PROPERTIES | ||
EP_PREFIX ${EP_PREFIX} | ||
) | ||
|
||
# Project dependencies. | ||
find_package(Threads REQUIRED) | ||
|
||
################################ | ||
# protobuf # | ||
################################ | ||
option(FIND_PROTOBUF "Try to find protobuf in system" ON) | ||
find_package(protobuf) | ||
|
||
########################## | ||
# boost # | ||
########################## | ||
find_package(Boost 1.65.0 REQUIRED) | ||
add_library(boost INTERFACE IMPORTED) | ||
set_target_properties(boost PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES ${Boost_INCLUDE_DIRS} | ||
) | ||
|
||
################################### | ||
# ed25519/sha3 # | ||
################################### | ||
find_package(ed25519) | ||
|
||
########################## | ||
# gtest # | ||
########################## | ||
# testing is an option. Look at the main CMakeLists.txt for details. | ||
if (TESTING) | ||
find_package(gtest) | ||
endif () |
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 |
---|---|---|
|
@@ -20,7 +20,6 @@ add_library(hash | |
) | ||
|
||
target_link_libraries(hash | ||
common | ||
ed25519 | ||
) | ||
|
||
|
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 @@ | ||
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/test_bin) | ||
|
||
include_directories( | ||
${CMAKE_CURRENT_SOURCE_DIR}/../../test | ||
) | ||
|
||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../test/module/shared_model shared_model_test) |
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