aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2018-07-07 20:34:29 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-07-07 20:34:29 +0200
commit12cb892acdc3b248ede8fbfe75bc23a8cf02d6da (patch)
tree74416caef4a38ea3dfeefb967e3d50f2c0e0b727 /CMakeLists.txt
parent494f5b3c285bf4b42c57e85f3b7b7e26620378e8 (diff)
parent63013dee539b33c682dd46ae4a086b2f75f46f16 (diff)
downloadlibnitrokey-12cb892acdc3b248ede8fbfe75bc23a8cf02d6da.tar.gz
libnitrokey-12cb892acdc3b248ede8fbfe75bc23a8cf02d6da.tar.bz2
Merge branch 'pr_125'
Add C minimal offline test Fixes #125
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06ab448..43d15df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -178,6 +178,10 @@ IF(COMPILE_OFFLINE_TESTS)
#run with 'make test' or 'ctest'
include (CTest)
add_test (runs test_offline)
+
+ add_executable(test_minimal unittest/test_minimal.c)
+ target_link_libraries(test_minimal ${EXTRA_LIBS} nitrokey)
+ add_test(minimal test_minimal)
ENDIF()
IF (COMPILE_TESTS)