aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-02-06 13:24:32 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:44 +0100
commit5f9927f86a8257ff3da8cdbbcd47de98ad09e7b6 (patch)
tree6f31ad30a94c8942228f38fc08e3978432ce9872 /CMakeLists.txt
parentd93e321832d7e44b76d80d5c13814b7e151d10e9 (diff)
downloadlibnitrokey-5f9927f86a8257ff3da8cdbbcd47de98ad09e7b6.tar.gz
libnitrokey-5f9927f86a8257ff3da8cdbbcd47de98ad09e7b6.tar.bz2
Compile both dynamic and static library versions
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4c37e31..b840e07 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,7 +54,9 @@ set(SOURCE_FILES
add_library(nitrokey SHARED ${SOURCE_FILES})
+add_library(nitrokey-static STATIC ${SOURCE_FILES})
target_link_libraries(nitrokey hidapi-libusb)
+target_link_libraries(nitrokey-static hidapi-libusb)
install (TARGETS nitrokey DESTINATION "lib")
file(GLOB LIB_INCLUDES "include/libnitrokey/*.h")