diff options
| author | Jonas Kvinge <jonas@jkvinge.net> | 2020-10-27 20:26:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-27 20:26:05 +0100 |
| commit | 3dd0c6dfbd4c828fc022501078fbc0b6d1473957 (patch) | |
| tree | 3e6203b6232fcca6dc3090cc2ec5bcccc9cba900 /examples/calculator | |
| parent | Merge pull request #118 from Shatur95/improve-qt6-support (diff) | |
| parent | Enable checks for warnings (diff) | |
| download | singleapplication-3dd0c6dfbd4c828fc022501078fbc0b6d1473957.tar.xz | |
Merge pull request #120 from Shatur95/master
Add Qt6 CI builds
Diffstat (limited to 'examples/calculator')
| -rw-r--r-- | examples/calculator/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/calculator/CMakeLists.txt b/examples/calculator/CMakeLists.txt index 990bff5..82305f0 100644 --- a/examples/calculator/CMakeLists.txt +++ b/examples/calculator/CMakeLists.txt @@ -6,6 +6,9 @@ set(CMAKE_AUTOMOC ON) # SingleApplication base class set(QAPPLICATION_CLASS QApplication) +add_subdirectory(../.. SingleApplication) + +find_package(Qt${QT_DEFAULT_MAJOR_VERSION} COMPONENTS Core REQUIRED) add_executable(${PROJECT_NAME} button.h @@ -15,6 +18,4 @@ add_executable(${PROJECT_NAME} main.cpp ) -find_package(Qt5 COMPONENTS Widgets REQUIRED) -add_subdirectory(../.. SingleApplication) target_link_libraries(${PROJECT_NAME} SingleApplication::SingleApplication) |
