ggerganov commited on
Commit
a7ccde0
·
unverified ·
1 Parent(s): 097e96a

cmake : add submodule whisper.spm

Browse files
Files changed (3) hide show
  1. .gitmodules +3 -0
  2. CMakeLists.txt +5 -0
  3. bindings/ios +1 -0
.gitmodules ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [submodule "bindings/ios"]
2
+ path = bindings/ios
3
+ url = https://github.com/ggerganov/whisper.spm
CMakeLists.txt CHANGED
@@ -9,6 +9,11 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
9
  set(WHISPER_STANDALONE ON)
10
  include(cmake/GitVars.cmake)
11
  include(cmake/BuildTypes.cmake)
 
 
 
 
 
12
  else()
13
  set(WHISPER_STANDALONE OFF)
14
  endif()
 
9
  set(WHISPER_STANDALONE ON)
10
  include(cmake/GitVars.cmake)
11
  include(cmake/BuildTypes.cmake)
12
+
13
+ # configure project version
14
+ if (EXISTS "${CMAKE_SOURCE_DIR}/bindings/ios/Makefile-tmpl")
15
+ configure_file(${CMAKE_SOURCE_DIR}/bindings/ios/Makefile-tmpl ${CMAKE_SOURCE_DIR}/bindings/ios/Makefile @ONLY)
16
+ endif()
17
  else()
18
  set(WHISPER_STANDALONE OFF)
19
  endif()
bindings/ios ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit d5a7c79a98589387f1c55c33de9faa894e70713d