|
|
|
@ -16,7 +16,6 @@ set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
|
|
|
|
|
|
|
|
|
find_package(PkgConfig REQUIRED) |
|
|
|
|
find_package(Qt5 COMPONENTS Core Multimedia REQUIRED) |
|
|
|
|
pkg_check_modules(StreamCamera REQUIRED IMPORTED_TARGET streamcamera) |
|
|
|
|
pkg_check_modules(FlutterEmbedder REQUIRED IMPORTED_TARGET flutter-embedder) |
|
|
|
|
|
|
|
|
|
add_library(${PLUGIN_NAME} SHARED |
|
|
|
@ -26,7 +25,6 @@ add_library(${PLUGIN_NAME} SHARED
|
|
|
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES CXX_VISIBILITY_PRESET hidden AUTOMOC ON) |
|
|
|
|
|
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::FlutterEmbedder) |
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PUBLIC PkgConfig::StreamCamera) |
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PUBLIC Qt5::Core Qt5::Multimedia) |
|
|
|
|
|
|
|
|
|
target_include_directories(${PLUGIN_NAME} PRIVATE ${FLUTTER_DIR}) |
|
|
|
|