From 348365050ea399d11a5400cbad4361eeb23eb87c Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Fri, 26 Jan 2018 09:26:16 +0100 Subject: [PATCH] CMake configuration for linuxdeployqt Not meant to replace the qmake build system, but for use with CMake based IDEs. --- CMakeLists.txt | 8 ++++++++ tools/linuxdeployqt/CMakeLists.txt | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 tools/linuxdeployqt/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..0e75be4 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,8 @@ +# CMake configuration for linuxdeployqt +# Not meant to replace the qmake build system, but for use with CMake based IDEs. + +cmake_minimum_required(VERSION 3.2) + +project(linuxdeployqt) + +add_subdirectory(tools/linuxdeployqt) diff --git a/tools/linuxdeployqt/CMakeLists.txt b/tools/linuxdeployqt/CMakeLists.txt new file mode 100644 index 0000000..9c9b81c --- /dev/null +++ b/tools/linuxdeployqt/CMakeLists.txt @@ -0,0 +1,7 @@ +set(CMAKE_AUTOMOC ON) + +find_package(Qt5 REQUIRED COMPONENTS Core) + +add_executable(linuxdeployqt main.cpp shared.cpp) +target_include_directories(linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) +target_link_libraries(linuxdeployqt Qt5::Core)