aboutsummaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-07-04 11:29:19 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-07-04 11:29:19 -0400
commit698a6b2bf76437ab79e791fc03cae0ca94292421 (patch)
tree0ba1de8e171ff7eb16dc75c428da26a29f66058b /tests/CMakeLists.txt
parentTweak clang format (diff)
downloadcli-698a6b2bf76437ab79e791fc03cae0ca94292421.zip
Tweak clang format and tests
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..4b0168f
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,7 @@
+add_executable(test_linebuffer test_linebuffer.c ../src/linebuffer.c)
+add_test(NAME test_linebuffer COMMAND test_linebuffer)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(CMOCKA REQUIRED cmocka)
+include_directories(${CMOCKA_INCLUDE_DIRS})
+target_link_libraries(test_linebuffer ${CMOCKA_LIBRARIES})