mirror of
https://github.com/neocturne/libuecc.git
synced 2025-03-04 09:03:31 +01:00
Build a shared library as well
This commit is contained in:
parent
c30aa7087c
commit
32d40ef190
1 changed files with 18 additions and 3 deletions
|
@ -1,7 +1,22 @@
|
|||
include_directories(${LIBUECC_SOURCE_DIR}/include)
|
||||
|
||||
add_library(uecc STATIC ec25519.c ec25519_gf.c)
|
||||
set(UECC_SRC ec25519.c ec25519_gf.c)
|
||||
set(UECC_ABI 0)
|
||||
|
||||
install(TARGETS uecc
|
||||
ARCHIVE DESTINATION lib
|
||||
add_library(uecc_shared SHARED ${UECC_SRC})
|
||||
set_target_properties(uecc_shared PROPERTIES
|
||||
OUTPUT_NAME uecc
|
||||
SOVERSION ${UECC_ABI}
|
||||
VERSION ${UECC_ABI}.${PROJECT_VERSION}
|
||||
)
|
||||
|
||||
add_library(uecc_static STATIC ${UECC_SRC})
|
||||
set_target_properties(uecc_static PROPERTIES
|
||||
OUTPUT_NAME uecc
|
||||
)
|
||||
|
||||
install(TARGETS uecc_shared uecc_static
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue