diff options
author | Itay Grudev <itay+github.com@grudev.com> | 2020-05-15 16:52:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 16:52:10 +0100 |
commit | 3a7d48f173e8a51a3835097c0182223c28630cc6 (patch) | |
tree | b8ddacb75fdb809ed08a560622bd5e8f582bad11 /examples/calculator/CMakeLists.txt | |
parent | v3.1.3 (diff) | |
parent | Update CMake examples (diff) | |
download | singleapplication-3a7d48f173e8a51a3835097c0182223c28630cc6.tar.xz |
Merge pull request #102 from Shatur95/update_cmake_examples
Update CMake examples
Diffstat (limited to 'examples/calculator/CMakeLists.txt')
-rw-r--r-- | examples/calculator/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/calculator/CMakeLists.txt b/examples/calculator/CMakeLists.txt index c90257a..565262c 100644 --- a/examples/calculator/CMakeLists.txt +++ b/examples/calculator/CMakeLists.txt @@ -1,11 +1,11 @@ cmake_minimum_required(VERSION 3.1.0) -project(calculator) +project(calculator LANGUAGES CXX) set(CMAKE_AUTOMOC ON) # SingleApplication base class -set(QAPPLICATION_CLASS QApplication CACHE STRING "Inheritance class for SingleApplication") +set(QAPPLICATION_CLASS QApplication) add_executable(${PROJECT_NAME} button.h @@ -13,8 +13,8 @@ add_executable(${PROJECT_NAME} button.cpp calculator.cpp main.cpp - ) +) find_package(Qt5 COMPONENTS Widgets REQUIRED) add_subdirectory(../.. SingleApplication) -target_link_libraries(${PROJECT_NAME} Qt5::Widgets SingleApplication) +target_link_libraries(${PROJECT_NAME} SingleApplication) |