mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-06-16 03:34:56 +02:00
CMakeLists.txt: use src/config.in.h as configuration file.
This commit is contained in:
parent
596cf8c774
commit
682ea069a2
1 changed files with 5 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ add_library( ${LIB_NAME} STATIC
|
|||
target_include_directories( ${LIB_NAME}
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
|
||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
)
|
||||
|
||||
|
|
@ -124,6 +125,9 @@ endif()
|
|||
|
||||
message("-- Using Elliptic curve library: ${EC_LIB}")
|
||||
|
||||
# Generate config file
|
||||
configure_file(src/config.in.h ${CMAKE_BINARY_DIR}/include/libantelope/config.h)
|
||||
|
||||
# --------------------------------
|
||||
# Tests
|
||||
# --------------------------------
|
||||
|
|
@ -160,7 +164,7 @@ install(TARGETS ${LIB_NAME} EXPORT ${PROJECT_NAME}Targets
|
|||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
install(DIRECTORY include/ ${CMAKE_BINARY_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
||||
# Readme and license
|
||||
install(FILES README.md LICENSE LICENSE.bitcoin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue