cmake_minimum_required(VERSION 3.0)
project(CapturyLiveSDK)

add_library(RemoteCapturyPlugin SHARED PluginRemoteCaptury.cpp)

add_library(HelloWorldPlugin SHARED PluginHelloWorld.cpp)
add_library(HelloWorld2Plugin SHARED PluginHelloWorldWithPanel.cpp)

include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include" "${CMAKE_CURRENT_BINARY_DIR}")

find_package(Qt5Core)
find_package(Qt5Gui)
find_package(Qt5Widgets)
if (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Widgets_FOUND)
	include_directories(${QT_INCLUDES})
	QT5_WRAP_UI(helloworld_forms PluginHelloWorld.ui)
	QT5_WRAP_CPP(helloworld_moc PluginHelloWorldWithQt.h)
	add_library(HelloWorld3Plugin SHARED PluginHelloWorldWithQt.cpp ${helloworld_moc} ${helloworld_forms})
	target_link_libraries(HelloWorld3Plugin PUBLIC Qt5::Core)
endif (Qt5Core_FOUND AND Qt5Gui_FOUND AND Qt5Widgets_FOUND)
