aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 01:08:48 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-12 01:08:48 -0400
commit247a53db3967792df64a583cea5d3c4fa299d4d5 (patch)
treebeb9370f1b2da7656adc4984c3b7cf210cc901bf
parent68c3a455c44b22911b6d2f7f0dcde5acaf8017da (diff)
downloaddeduper-247a53db3967792df64a583cea5d3c4fa299d4d5.tar.xz
correct library linkage ordering.
-rw-r--r--CMakeLists.txt2
-rw-r--r--tests/CMakeLists.txt8
2 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 815e901..6536a47 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,8 +4,10 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(OpenCV REQUIRED COMPONENTS core imgproc imgcodecs highgui)
+find_package(SQLite3 REQUIRED)
find_package(Threads REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
+include_directories(${SQLite3_INCLUDE_DIRS})
INCLUDE (CheckTypeSize)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index b2529d4..700fc6a 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -19,10 +19,10 @@ target_link_libraries(image_util_tests
add_executable(signature_test signature_test.cpp)
target_link_libraries(signature_test
+ xsig
opencv_core
opencv_imgcodecs
opencv_imgproc
- xsig
)
#add_executable(deduper_legacy deduper_legacy.cpp)
@@ -34,26 +34,24 @@ target_link_libraries(signature_test
add_executable(testdrive testdrive.cpp)
target_link_libraries(testdrive
+ xsig
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
+ xsig
opencv_core
opencv_imgcodecs
opencv_imgproc
${SQLite3_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
- xsig
)
if(WIN32)
target_link_libraries(testdrive_sqlite shell32 kernel32)