25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
471 B

1 년 전
  1. set(CMAKE_DEBUG_POSTFIX "_d")
  2. set(CMAKE_RELEASE_POSTFIX "_r")
  3. set_target_properties(${TARGET_NAME} PROPERTIES DEBUG_POSTFIX "_d")
  4. set_target_properties(${TARGET_NAME} PROPERTIES RELEASE_POSTFIX "_r")
  5. cmake_minimum_required(VERSION 3.1)
  6. project("hnswlab")
  7. set(CMAKE_C_STANDARD 11)
  8. # generate .so file
  9. include_directories(inc)
  10. add_library(hnswc
  11. SHARED
  12. src/utils.c
  13. src/hnsw.c
  14. )
  15. add_executable(hnsw_test src/test.c)
  16. target_link_libraries(hnsw_test hnswc m)