blob: 8fbc018ffbf7f15914651eeae2c504eda6e2c92b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
include_directories(${LIBUECC_SOURCE_DIR}/include)
set(UECC_SRC ec25519.c ec25519_gf.c)
set(UECC_ABI 0)
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${LIB_SUFFIX}
LIBRARY DESTINATION lib${LIB_SUFFIX}
RUNTIME DESTINATION bin
)
|