Added
Link Here
|
1 |
--- CMakeLists.txt.orig 2021-05-28 02:40:44 UTC |
2 |
+++ CMakeLists.txt |
3 |
@@ -14,29 +14,8 @@ endif() |
4 |
project(chiapos C CXX ASM) |
5 |
|
6 |
# CMake 3.14+ |
7 |
-include(FetchContent) |
8 |
+include(${CMAKE_INSTALL_PREFIX}/share/cmake/pybind11/pybind11Config.cmake) |
9 |
|
10 |
-FetchContent_Declare( |
11 |
- pybind11-src |
12 |
- GIT_REPOSITORY https://github.com/pybind/pybind11.git |
13 |
- GIT_TAG v2.6.2 |
14 |
-) |
15 |
-FetchContent_MakeAvailable(pybind11-src) |
16 |
- |
17 |
-FetchContent_Declare( |
18 |
- cxxopts |
19 |
- GIT_REPOSITORY https://github.com/jarro2783/cxxopts.git |
20 |
- GIT_TAG v2.2.1 |
21 |
-) |
22 |
-FetchContent_MakeAvailable(cxxopts) |
23 |
- |
24 |
-FetchContent_Declare( |
25 |
- gulrak |
26 |
- GIT_REPOSITORY https://github.com/gulrak/filesystem.git |
27 |
- GIT_TAG v1.5.6 |
28 |
-) |
29 |
-FetchContent_MakeAvailable(gulrak) |
30 |
- |
31 |
set(FSE_LIB ${CMAKE_CURRENT_SOURCE_DIR}/lib/FiniteStateEntropy/lib) |
32 |
set(FSE_FILES |
33 |
${FSE_LIB}/fse_compress.c |
34 |
@@ -48,8 +27,8 @@ set(FSE_FILES |
35 |
include_directories( |
36 |
${INCLUDE_DIRECTORIES} |
37 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/include |
38 |
- ${cxxopts_SOURCE_DIR}/include |
39 |
- ${gulrak_SOURCE_DIR}/include/ghc |
40 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/src-ext/cxxopts/include |
41 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/src-ext/gulrak/include/ghc |
42 |
${CMAKE_CURRENT_SOURCE_DIR}/../lib/FiniteStateEntropy/lib |
43 |
${CMAKE_CURRENT_SOURCE_DIR}/src |
44 |
${CMAKE_CURRENT_SOURCE_DIR}/test |
45 |
@@ -144,6 +123,9 @@ add_executable(RunTests |
46 |
src/chacha8.c |
47 |
${BLAKE3_SRC} |
48 |
) |
49 |
+ |
50 |
+install(TARGETS ProofOfSpace DESTINATION bin) |
51 |
+install(TARGETS RunTests DESTINATION bin) |
52 |
|
53 |
find_package(Threads REQUIRED) |
54 |
|