mirror of
https://github.com/facebookresearch/faiss.git
synced 2025-06-03 21:54:02 +08:00
* add initial cmake support * update cmake, add cmake instructions to INSTALL * update findopenmp and INSTALL * change FindOpenBLAS.cmake to cater for macports - change cblas.h to openblas_config.h since macports does not ship cblas.h with openblas. * revise INSTALL for cmake
16 lines
399 B
CMake
16 lines
399 B
CMake
file(GLOB srcs ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
|
|
|
# Build each source file independently
|
|
include_directories(../../../) # faiss root directory
|
|
|
|
foreach(source ${srcs})
|
|
get_filename_component(name ${source} NAME_WE)
|
|
|
|
# target
|
|
add_executable(${name} ${source})
|
|
target_link_libraries(${name} ${faiss_lib})
|
|
|
|
# Install
|
|
install(TARGETS ${name} DESTINATION bin)
|
|
endforeach(source)
|