From 2c734a5479e37fff444fd3f06f395ba35c5a18a0 Mon Sep 17 00:00:00 2001 From: Jeremy Borgman Date: Fri, 15 Jan 2021 19:20:11 -0600 Subject: [PATCH] fixed Mac cmake issue --- CMakeLists.txt | 3 +++ src/core/CMakeLists.txt | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d91daed..5aebd445 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,6 +88,9 @@ set(QAPPLICATION_CLASS CACHE STRING "Inheritance class for SingleApplication") add_subdirectory(external/singleapplication) add_subdirectory(external/spdlog) +IF (APPLE) + add_subdirectory(external/QHotkey) +ENDIF () add_subdirectory(src) # CPack diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e93645c8..39e35b6b 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1,7 +1,4 @@ # Required to generate MOC -IF (APPLE) - add_subdirectory(QHotkey) -ENDIF () target_sources(flameshot PRIVATE controller.h flameshotdbusadapter.h)