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)