From 81465e1eec5f469f5e95649c50d0cc0e3f68d79e Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Fri, 11 Oct 2019 16:30:11 +0300 Subject: Add CMake support (#66) * Add CMake support * Remove unused 'tr()' * Add option to specify a class for inheritance * Use modern syntax * Rework CMakeLists.txt Thanks to @akallabeth * Add CMake build rules for examples --- examples/basic/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/basic/CMakeLists.txt (limited to 'examples/basic') diff --git a/examples/basic/CMakeLists.txt b/examples/basic/CMakeLists.txt new file mode 100644 index 0000000..4f1902b --- /dev/null +++ b/examples/basic/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.1.0) + +project(basic) + +# SingleApplication base class +set(QAPPLICATION_CLASS QCoreApplication CACHE STRING "Inheritance class for SingleApplication") + +add_executable(basic + main.cpp + ) + +find_package(Qt5 COMPONENTS Core REQUIRED) +add_subdirectory(../.. SingleApplication) +target_link_libraries(${PROJECT_NAME} Qt5::Core SingleApplication) + -- cgit v1.2.1