Skip to content

Commit

Permalink
Fixed Emgu.TF.Lite.runtime.maui project compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed Oct 3, 2024
1 parent 6d0cf4b commit 479ef44
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Emgu.TF.Runtime/Maui/UI/Lite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Only build MAUI projects on Windows or MacOS. MAUI compilation on Linux seems to be a problem.
IF(HAVE_MAUI_LITE AND (APPLE OR WIN32))
PROJECT(Emgu.TF.Lite.Platform.Maui.UI)
PROJECT(Emgu.TF.Lite.runtime.maui)
INSTALL(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION Emgu.TF.Platform/Maui/UI
Expand All @@ -26,10 +26,18 @@ IF(HAVE_MAUI_LITE AND (APPLE OR WIN32))
#endif()

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

IF (TARGET Emgu.TF.Lite.runtime.maui.android)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.TF.Lite.runtime.maui.android)
ENDIF()

IF (TARGET Emgu.TF.Lite.runtime.maui.ios)
ADD_DEPENDENCIES(${PROJECT_NAME} Emgu.TF.Lite.runtime.maui.ios)
ENDIF()

INSTALL(
DIRECTORY
${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.Platform.Maui.UI
${LIBRARY_OUTPUT_PATH}/Build/Emgu.TF.Lite.runtime.maui
DESTINATION ${CPACK_PACKAGE_CLI_FOLDER}
COMPONENT emgutf_binary)

Expand Down

0 comments on commit 479ef44

Please sign in to comment.