Skip to content

Commit

Permalink
cmake: Rename library and install path (dashpay#17)
Browse files Browse the repository at this point in the history
* cmake: Rename the library from libbls.a to libbls-dash.a

* cmake: Rename install directory from chiabls to bls-dash

Match the library name
  • Loading branch information
xdustinface committed Mar 18, 2021
1 parent fd3f193 commit 6f06503
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ if (GMP_FOUND)
include_directories(${GMP_INCLUDES})
endif(GMP_FOUND)

set(C_LIB ${CMAKE_BINARY_DIR}/libbls.a)
set(C_LIB ${CMAKE_BINARY_DIR}/libbls-dash.a)

add_library(bls ${CMAKE_CURRENT_SOURCE_DIR}/privatekey.cpp)
add_library(bls-dash ${CMAKE_CURRENT_SOURCE_DIR}/privatekey.cpp)

add_library(blstmp ${HEADERS}
${CMAKE_CURRENT_SOURCE_DIR}/privatekey.cpp
Expand Down Expand Up @@ -74,17 +74,17 @@ add_custom_target(combined_custom

add_library(combined STATIC IMPORTED GLOBAL)
add_dependencies(combined combined_custom)
target_link_libraries(bls combined)
target_link_libraries(bls-dash combined)

set_target_properties(combined
PROPERTIES
IMPORTED_LOCATION ${C_LIB}
)

file(GLOB includes "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp")
install(DIRECTORY ${relic_SOURCE_DIR}/include/ DESTINATION include/chiabls)
install(DIRECTORY ${relic_BINARY_DIR}/include/ DESTINATION include/chiabls)
install(FILES ${includes} DESTINATION include/chiabls)
install(DIRECTORY ${relic_SOURCE_DIR}/include/ DESTINATION include/bls-dash)
install(DIRECTORY ${relic_BINARY_DIR}/include/ DESTINATION include/bls-dash)
install(FILES ${includes} DESTINATION include/bls-dash)
install(FILES ${C_LIB} DESTINATION lib)

if (BUILD_BLS_TESTS)
Expand Down

0 comments on commit 6f06503

Please sign in to comment.