-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathCMakeLists.txt
29 lines (23 loc) · 1 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
project (NearestSearch CXX C)
cmake_minimum_required(VERSION 2.6)
find_package(LAPACK)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -std=c++0x -m64")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -std=c++0x -m64")
SET(YAEL_DIR /home/arbabenko/libs/yael_v438)
SET(YAEL_LIB /home/arbabenko/libs/yael_v438/yael)
SET(BLAS_DIR /opt/OpenBLAS/include)
SET(BLAS_LIB /opt/OpenBLAS/lib)
#########################################################################################
INCLUDE_DIRECTORIES(${BLAS_DIR})
INCLUDE_DIRECTORIES(${YAEL_DIR})
LINK_DIRECTORIES(${YAEL_LIB})
LINK_DIRECTORIES(${BLAS_LIB})
ADD_EXECUTABLE (learnGNOIMI learn_GNOIMI.cpp)
TARGET_LINK_LIBRARIES (learnGNOIMI yael ${LAPACK_LIBRARIES})
#########################################################################################
INCLUDE_DIRECTORIES(${BLAS_DIR})
INCLUDE_DIRECTORIES(${YAEL_DIR})
LINK_DIRECTORIES(${YAEL_LIB})
LINK_DIRECTORIES(${BLAS_LIB})
ADD_EXECUTABLE (searchGNOIMI search_GNOIMI.cpp)
TARGET_LINK_LIBRARIES (searchGNOIMI yael ${LAPACK_LIBRARIES})