diff options
Diffstat (limited to 'examples/activeqt/mediaplayer/CMakeLists.txt')
-rw-r--r-- | examples/activeqt/mediaplayer/CMakeLists.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/activeqt/mediaplayer/CMakeLists.txt b/examples/activeqt/mediaplayer/CMakeLists.txt new file mode 100644 index 0000000..317ea40 --- /dev/null +++ b/examples/activeqt/mediaplayer/CMakeLists.txt @@ -0,0 +1,39 @@ +# Generated from mediaplayer.pro. + +cmake_minimum_required(VERSION 3.14) +project(mediaplayer LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +if(NOT DEFINED INSTALL_EXAMPLESDIR) + set(INSTALL_EXAMPLESDIR "examples") +endif() + +set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/activeqt/mediaplayer") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS Widgets) +find_package(Qt6 COMPONENTS AxContainer) + +add_qt_gui_executable(mediaplayer + main.cpp + mainwindow.ui + mediaaxwidget.h +) +target_link_libraries(mediaplayer PUBLIC + Qt::AxContainer + Qt::Core + Qt::Gui + Qt::Widgets +) + +install(TARGETS mediaplayer + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) |