find_package(Qt5Core REQUIRED) find_package(Qt5Widgets REQUIRED) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) add_library(ConfigurationEditorPlugin SHARED ${CMAKE_SOURCE_DIR}/include/plugininterface.h ${CMAKE_SOURCE_DIR}/include/browserinterface.h configurationeditorplugin.cpp configurationeditorplugin.h forms/configurationdialog.cpp forms/configurationdialog.h forms/configurationdialog.ui ) target_include_directories(ConfigurationEditorPlugin PRIVATE ${CMAKE_SOURCE_DIR}/include ) target_link_libraries(ConfigurationEditorPlugin PRIVATE Qt5::Widgets ) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") install(TARGETS ConfigurationEditorPlugin RUNTIME DESTINATION ${CONFIG_INSTALL_PLUGINDIR} CONFIGURATIONS Release) else() install(TARGETS ConfigurationEditorPlugin LIBRARY DESTINATION ${CONFIG_INSTALL_PLUGINDIR} CONFIGURATIONS Release) endif()