diff options
author | 2022-09-11 01:39:29 -0400 | |
---|---|---|
committer | 2022-09-11 01:39:29 -0400 | |
commit | c41768dbbd50a0055298d5ec6318ae7f1d2e4ab3 (patch) | |
tree | 4fe4ec18a65424998c33c6654456b2551996ae39 /tests/CMakeLists.txt | |
parent | fd2773c2407aa475ba8aa4c8a72c91b83fd99c42 (diff) | |
download | deduper-c41768dbbd50a0055298d5ec6318ae7f1d2e4ab3.tar.xz |
New testdrive using sqlite db as data storage.
Add signature serialization & deserialization.
Only link what we need from OpenCV.
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 34 |
1 files changed, 30 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 5990374..b2529d4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,18 +1,27 @@ add_executable(compressed_vector compressed_vector.cpp) target_link_libraries(compressed_vector - ${OpenCV_LIBS} + xsig +) + +add_executable(base64_test base64_test.cpp) +target_link_libraries(base64_test xsig ) add_executable(image_util_tests image_util_tests.cpp) target_link_libraries(image_util_tests - ${OpenCV_LIBS} + opencv_core + opencv_imgcodecs + opencv_imgproc + opencv_highgui xsig ) add_executable(signature_test signature_test.cpp) target_link_libraries(signature_test - ${OpenCV_LIBS} + opencv_core + opencv_imgcodecs + opencv_imgproc xsig ) @@ -25,10 +34,27 @@ target_link_libraries(signature_test add_executable(testdrive testdrive.cpp) target_link_libraries(testdrive - ${OpenCV_LIBS} + opencv_core + opencv_imgcodecs + opencv_imgproc ${CMAKE_THREAD_LIBS_INIT} xsig ) if(WIN32) target_link_libraries(testdrive shell32 kernel32) endif() + +find_package(SQLite3 REQUIRED) +include_directories(${SQLite3_INCLUDE_DIRS}) +add_executable(testdrive_sqlite testdrive_sqlite.cpp) +target_link_libraries(testdrive_sqlite + opencv_core + opencv_imgcodecs + opencv_imgproc + ${SQLite3_LIBRARIES} + ${CMAKE_THREAD_LIBS_INIT} + xsig +) +if(WIN32) + target_link_libraries(testdrive_sqlite shell32 kernel32) +endif() |