diff options
author | Liang Qi <liang.qi@qt.io> | 2020-01-09 13:15:44 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2020-01-09 16:07:44 +0000 |
commit | 4a00c5bf112ab0d2fd04bd5284ec46c664ac9df5 (patch) | |
tree | 682e2689cc3341fdb2fc9272bb3f28732af5c92c /examples/macextras/mactoolbar/CMakeLists.txt | |
parent | 7fd4b9f58c829a984d9ce37baff0642f512a8b89 (diff) |
Port to CMakewip/cmake
Only tested on macOS.
Fixes: QTBUG-78169
Change-Id: Ic3c19ff8ef56d104c9d1a41acb5efe9dac6c162d
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'examples/macextras/mactoolbar/CMakeLists.txt')
-rw-r--r-- | examples/macextras/mactoolbar/CMakeLists.txt | 46 |
1 files changed, 46 insertions, 0 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}" +) |