diff options
Diffstat (limited to 'examples/macextras/mactoolbar')
-rw-r--r-- | examples/macextras/mactoolbar/CMakeLists.txt | 46 | ||||
-rw-r--r-- | examples/macextras/mactoolbar/rasterwindow.h | 7 |
2 files changed, 52 insertions, 1 deletions
diff --git a/examples/macextras/mactoolbar/CMakeLists.txt b/examples/macextras/mactoolbar/CMakeLists.txt new file mode 100644 index 0000000..9054940 --- /dev/null +++ b/examples/macextras/mactoolbar/CMakeLists.txt @@ -0,0 +1,46 @@ +# Generated from mactoolbar.pro. + +cmake_minimum_required(VERSION 3.14) +project(mactoolbar LANGUAGES CXX) + +set(CMAKE_INCLUDE_CURRENT_DIR ON) + +set(CMAKE_AUTOMOC ON) +set(CMAKE_AUTORCC ON) +set(CMAKE_AUTOUIC ON) + +set(INSTALL_EXAMPLEDIR "examples/macextras/mactoolbar") + +find_package(Qt6 COMPONENTS Core) +find_package(Qt6 COMPONENTS Gui) +find_package(Qt6 COMPONENTS MacExtras) + +add_qt_gui_executable(mactoolbar + main.cpp + rasterwindow.cpp rasterwindow.h + toolbarcontrollerwindow.cpp toolbarcontrollerwindow.h +) +target_link_libraries(mactoolbar PUBLIC + Qt::Core + Qt::Gui + Qt::MacExtras +) + + +# Resources: +set(mactoolbar_resource_files + "qtlogo.png" +) + +qt6_add_resources(mactoolbar "mactoolbar" + PREFIX + "/" + FILES + ${mactoolbar_resource_files} +) + +install(TARGETS mactoolbar + RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}" + BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}" + LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}" +) diff --git a/examples/macextras/mactoolbar/rasterwindow.h b/examples/macextras/mactoolbar/rasterwindow.h index 5465344..c65a2b2 100644 --- a/examples/macextras/mactoolbar/rasterwindow.h +++ b/examples/macextras/mactoolbar/rasterwindow.h @@ -48,6 +48,9 @@ ** ****************************************************************************/ +#ifndef RASTERWINDOW_H +#define RASTERWINDOW_H + #include <QtGui> class RasterWindow : public QWindow @@ -66,4 +69,6 @@ protected: private: QBackingStore *m_backingStore; QString m_text; -};
\ No newline at end of file +}; + +#endif // RASTERWINDOW_H |