-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
60 lines (47 loc) · 2.9 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.7)
project(image_processing)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_CXX_STANDARD 11)
add_library(Catch INTERFACE)
target_include_directories(Catch INTERFACE test/catch)
add_library(tests-main test/tests-main.cpp)
target_link_libraries(tests-main Catch)
add_library(openblas STATIC IMPORTED )
set_target_properties(openblas PROPERTIES IMPORTED_LOCATION "C:/Users/Dima/Downloads/OpenBLAS-v0.2.19-Win64-int32/OpenBLAS-v0.2.19-Win64-int32/bin/libopenblas.dll")
#set_target_properties(openblas PROPERTIES IMPORTED_LOCATION "C:/Users/Dima/Downloads/OpenBLAS-v0.2.19-Win64-int32/OpenBLAS-v0.2.19-Win64-int32/lib/libopenblas.a")
#include_directories("/opt/OpenBLAS/include")
#include_directories("/home/dima/Downloads/catch")
include_directories("C:/Users/Dima/Downloads/OpenBLAS-v0.2.19-Win64-int32/OpenBLAS-v0.2.19-Win64-int32/include")
set(SOURCE_FILES
src/util/array_utils.h
src/multiindex/InvertedMultiIndex.h
src/multiindex/MultiIndexUtil.h
src/multiindex/MultiSequenceAlgorithm.h
src/util/PriorityTuple.h
src/multiindex/InvertedMultiIndexSearcher.h
src/util/cblas_wraps.h
src/distance/EuclideanDistanceComputer.h
src/distance/SubspacesProductEuclideanDistanceComputer.h
src/search/SubspacesProductNearestIndicesSearcher.h
src/search/NearestIndicesSearcher.h
src/multiindex/InvertedMultiIndexBuilder.h src/util/SubspacedVectors.h
src/util/SubspacedScalars.h
src/util/SubspacedVector.h src/util/Vectors.h src/util/common_defs.h)
add_library(invertedmultiindex STATIC ${SOURCE_FILES})
set_target_properties(invertedmultiindex PROPERTIES LINKER_LANGUAGE CXX)
target_link_libraries(invertedmultiindex openblas)
add_executable(${PROJECT_NAME}-test
"test/distance/tests-EuclideanDistanceComputer.cpp"
test/distance/tests-SubspacesProductEuclideanDistanceComputer.cpp
test/search/tests-NearestIndicesSearcher.cpp
test/search/tests-SubspacesProductNearestIndicesSearcher.cpp
test/multiindex/tests-InvertedMultiIndexBuilder.cpp
test/multiindex/tests-MultiSequenceAlgorithm.cpp test/search/tests-InvertedMultiIndexSearcher.cpp
test/multiindex/tests-MultiIndexUtil.cpp test/search/tests-glcm-issue.cpp
test/distance/tests-SymmetricDistanceComputer.cpp
test/distance/tests-AsymmetricDistanceComputer.cpp)
#target_link_libraries(${PROJECT_NAME}-test "/opt/OpenBLAS/lib/libopenblas.so")
#target_link_libraries(${PROJECT_NAME} "/opt/OpenBLAS/lib/libopenblas.so")
target_link_libraries(${PROJECT_NAME}-test tests-main invertedmultiindex)
#target_link_libraries(${PROJECT_NAME}-test "C:/Users/Dima/Downloads/OpenBLAS-v0.2.19-Win64-int32/OpenBLAS-v0.2.19-Win64-int32/bin/libopenblas.dll")
#target_link_libraries(${PROJECT_NAME} MY_LIB "C:/Users/Dima/Downloads/OpenBLAS-v0.2.19-Win64-int32/OpenBLAS-v0.2.19-Win64-int32/bin/libopenblas.dll")