aboutsummaryrefslogtreecommitdiff
path: root/examples/basic/CMakeLists.txt
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2020-05-15 16:52:10 +0100
committerGitHub <noreply@github.com>2020-05-15 16:52:10 +0100
commit3a7d48f173e8a51a3835097c0182223c28630cc6 (patch)
treeb8ddacb75fdb809ed08a560622bd5e8f582bad11 /examples/basic/CMakeLists.txt
parentv3.1.3 (diff)
parentUpdate CMake examples (diff)
downloadsingleapplication-3a7d48f173e8a51a3835097c0182223c28630cc6.tar.xz
Merge pull request #102 from Shatur95/update_cmake_examples
Update CMake examples
Diffstat (limited to 'examples/basic/CMakeLists.txt')
-rw-r--r--examples/basic/CMakeLists.txt10
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/basic/CMakeLists.txt b/examples/basic/CMakeLists.txt
index 4f1902b..dd84feb 100644
--- a/examples/basic/CMakeLists.txt
+++ b/examples/basic/CMakeLists.txt
@@ -1,15 +1,13 @@
cmake_minimum_required(VERSION 3.1.0)
-project(basic)
+project(basic LANGUAGES CXX)
# SingleApplication base class
-set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication")
+set(QAPPLICATION_CLASS QCoreApplication)
-add_executable(basic
- main.cpp
- )
+add_executable(basic main.cpp)
find_package(Qt5 COMPONENTS Core REQUIRED)
add_subdirectory(../.. SingleApplication)
-target_link_libraries(${PROJECT_NAME} Qt5::Core SingleApplication)
+target_link_libraries(${PROJECT_NAME} SingleApplication)