Skip to content

Commit

Permalink
Add include dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Sep 15, 2024
1 parent d34fa0d commit fcdf2ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chiapos-2.0.6/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,6 @@ include_directories(
${BLAKE3_INCLUDE_DIR}
)

add_library(uint128 STATIC ${CMAKE_CURRENT_SOURCE_DIR}/uint128_t/uint128_t.cpp)
target_include_directories(uint128 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/uint128_t)

option(BUILD_PROOF_OF_SPACE_STATICALLY "Build ProofOfSpace target statically" OFF)
IF (BUILD_PROOF_OF_SPACE_STATICALLY)
message("Statically build ProofOfSpace")
Expand All @@ -167,7 +164,7 @@ IF (BUILD_STATIC_CHIAPOS_LIBRARY)
message("Build chiapos static library (verify-only)")
add_library(chiapos_static STATIC src/chacha8.c c-bindings/wrapper.cpp)
target_link_libraries(chiapos_static PUBLIC blake3)
target_include_directories(chiapos_static PUBLIC lib/include)
target_include_directories(chiapos_static PUBLIC lib/include uint128_t)
ENDIF()

FetchContent_Declare(
Expand Down Expand Up @@ -197,6 +194,9 @@ endif()

find_package(Threads REQUIRED)

add_library(uint128 STATIC uint128_t/uint128_t.cpp)
target_include_directories(uint128 PUBLIC uint128_t)

target_compile_features(fse PUBLIC cxx_std_17)
target_compile_features(chiapos PUBLIC cxx_std_17)
if (WIN32)
Expand Down

0 comments on commit fcdf2ea

Please sign in to comment.