# set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5Multimedia REQUIRED)
FIND_PACKAGE( Qt5MultimediaWidgets REQUIRED )

SET(QT_USE_QTMULTIMEDIA TRUE)
SET(QT_USE_QTMULTIMEDIAWIDGETS TRUE)

add_library(audio_viewer
AudioWidget.cpp 
AudioWidget.hpp
AudioWidget.ui
)

target_include_directories(audio_viewer PUBLIC ./)

target_link_libraries(audio_viewer 
Qt5::Widgets 
Qt5::Multimedia 
audio_player
)
