Skip to content

Commit 2d96719

Browse files
authored
Merge pull request #222 from probonopd/TheAssassin/CMake
CMake configuration for linuxdeployqt
2 parents fd33511 + 3483650 commit 2d96719

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# CMake configuration for linuxdeployqt
2+
# Not meant to replace the qmake build system, but for use with CMake based IDEs.
3+
4+
cmake_minimum_required(VERSION 3.2)
5+
6+
project(linuxdeployqt)
7+
8+
add_subdirectory(tools/linuxdeployqt)

tools/linuxdeployqt/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(CMAKE_AUTOMOC ON)
2+
3+
find_package(Qt5 REQUIRED COMPONENTS Core)
4+
5+
add_executable(linuxdeployqt main.cpp shared.cpp)
6+
target_include_directories(linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
7+
target_link_libraries(linuxdeployqt Qt5::Core)

0 commit comments

Comments
 (0)