aboutsummaryrefslogtreecommitdiff
path: root/examples/basic
diff options
context:
space:
mode:
authorShatur95 <genaloner@gmail.com>2020-05-15 18:42:56 +0300
committerShatur95 <genaloner@gmail.com>2020-05-15 18:42:56 +0300
commit56e4f8d277e41bf78e22c3100d6d88308a0b3c84 (patch)
treeb8ddacb75fdb809ed08a560622bd5e8f582bad11 /examples/basic
parentv3.1.3 (diff)
downloadsingleapplication-56e4f8d277e41bf78e22c3100d6d88308a0b3c84.tar.xz
Update CMake examples
Diffstat (limited to 'examples/basic')
-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)