Skip to content

Commit

Permalink
Make: Install Sources (#227)
Browse files Browse the repository at this point in the history
Closes #224 

* Install needed file

This file is needed by usearch
https://github.com/unum-cloud/usearch/blob/e7140e55967a4198f2bbd34987fa7597ebafa649/c/CMakeLists.txt#L5.

* Change the default C version to C23
  • Loading branch information
Spixmaster authored Nov 5, 2024
1 parent cca7e6c commit 81ffaae
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(
HOMEPAGE_URL "https://github.com/ashvardanian/simsimd"
)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD 23)
set(CMAKE_C_STANDARD_REQUIRED YES)
set(CMAKE_C_EXTENSIONS NO)

Expand Down Expand Up @@ -117,4 +117,19 @@ if (SIMSIMD_BUILD_SHARED)
add_library(simsimd_shared SHARED ${SIMSIMD_SOURCES})
target_include_directories(simsimd_shared PUBLIC "${PROJECT_SOURCE_DIR}/include")
set_target_properties(simsimd_shared PROPERTIES OUTPUT_NAME simsimd)

install(
TARGETS simsimd_shared
ARCHIVE
BUNDLE
FRAMEWORK
LIBRARY
OBJECTS
PRIVATE_HEADER
PUBLIC_HEADER
RESOURCE
RUNTIME)
endif ()

install(DIRECTORY ./include/ DESTINATION /usr/include/)
install(DIRECTORY ./c/ DESTINATION /usr/src/${PROJECT_NAME}/)

0 comments on commit 81ffaae

Please sign in to comment.