aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
blob: b2529d48de7d0b07cdf7fa15f47def89e2f82f01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
add_executable(compressed_vector compressed_vector.cpp)
target_link_libraries(compressed_vector
  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_core
  opencv_imgcodecs
  opencv_imgproc
  opencv_highgui
  xsig
)

add_executable(signature_test signature_test.cpp)
target_link_libraries(signature_test
  opencv_core
  opencv_imgcodecs
  opencv_imgproc
  xsig
)

#add_executable(deduper_legacy deduper_legacy.cpp)
#target_link_libraries(deduper_legacy
#  ${OpenCV_LIBS}
#  ${CMAKE_THREAD_LIBS_INIT}
#  xsig
#)

add_executable(testdrive testdrive.cpp)
target_link_libraries(testdrive
  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()