cmake_minimum_required(VERSION 3.3)

project(kddockwidgets_example)

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIRS ON)


if (NOT TARGET kddockwidgets)
  # This will look for Qt, do find_package yourself manually before
  # if you want to look for a specific Qt version for instance.
  find_package(KDDockWidgets REQUIRED)
endif()

qt5_add_resources(RESOURCES_EXAMPLE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/resources_example.qrc)

add_executable(kddockwidgets_example
    main.cpp
    MyFrameworkWidgetFactory.cpp
    MyMainWindow.cpp
    MyWidget.cpp
    ${RESOURCES_EXAMPLE_SRC}
)

target_link_libraries(kddockwidgets_example
    PRIVATE 
        KDAB::kddockwidgets
)

