Skip to content

Commit

Permalink
Add Emgu.runtime.windows.msvc.rt nuget packages before Emgu.CV.TF(.Li…
Browse files Browse the repository at this point in the history
…te).runtime.windows nuget package project.
  • Loading branch information
emgucv committed Sep 30, 2024
1 parent 7c802b8 commit 48fde49
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
15 changes: 8 additions & 7 deletions platforms/nuget/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
#add_subdirectory(Emgu.TF.Models)
#add_subdirectory(Emgu.TF.Protobuf)

IF (HAVE_WINDESKTOP_X64_LITE OR HAVE_WINDESKTOP)
ADD_SUBDIRECTORY(Emgu.runtime.windows.msvc.rt.x64)
ENDIF()

IF (HAVE_WINDESKTOP_X86_LITE)
ADD_SUBDIRECTORY(Emgu.runtime.windows.msvc.rt.x86)
ENDIF()

IF (WIN32 AND HAVE_WINDESKTOP)
add_subdirectory(Emgu.runtime.windows.zlibwapi.x64)

Expand Down Expand Up @@ -53,13 +61,6 @@ IF (HAVE_WINDESKTOP_LITE)
add_subdirectory(Emgu.TF.Lite.runtime.windows)
ENDIF()

IF (HAVE_WINDESKTOP_X64_LITE OR HAVE_WINDESKTOP)
ADD_SUBDIRECTORY(Emgu.runtime.windows.msvc.rt.x64)
ENDIF()

IF (HAVE_WINDESKTOP_X86_LITE)
ADD_SUBDIRECTORY(Emgu.runtime.windows.msvc.rt.x86)
ENDIF()

IF(HAVE_OSX_LITE)
add_subdirectory(Emgu.TF.Lite.runtime.macos)
Expand Down
9 changes: 9 additions & 0 deletions platforms/nuget/Emgu.TF.Lite.runtime.windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ PROJECT(Emgu.TF.Lite.runtime.windows.nuget)
IF (EMGU_NUGET_SIGN_FOUND)
EMGU_SIGN_NUGET(${PROJECT_NAME} "${NUGET_OUTPUT_DIR}/${EMGUTF_LITE_WINDOWS_NUGET_ID}.${CPACK_PACKAGE_VERSION}${TENSORFLOW_VERSION_SUFFIX}.nupkg")
ENDIF()

IF (TARGET Emgu.runtime.windows.msvc.rt.x64.nuget)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.runtime.windows.msvc.rt.x64.nuget)
ENDIF()

IF (TARGET Emgu.runtime.windows.msvc.rt.x86.nuget)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.runtime.windows.msvc.rt.x86.nuget)
ENDIF()

#ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.TF.Lite.nuget)

if(ENABLE_SOLUTION_FOLDERS)
Expand Down
4 changes: 4 additions & 0 deletions platforms/nuget/Emgu.TF.runtime.windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ IF (TARGET Emgu.runtime.windows.zlibwapi.x64.nuget)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.runtime.windows.zlibwapi.x64.nuget)
ENDIF()

IF (TARGET Emgu.runtime.windows.msvc.rt.x64.nuget)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.runtime.windows.msvc.rt.x64.nuget)
ENDIF()


if(ENABLE_SOLUTION_FOLDERS)
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "NUGET")
Expand Down

0 comments on commit 48fde49

Please sign in to comment.