diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6e31d27..625f4fc 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.5) project(QtAdvancedDockingSystem LANGUAGES CXX VERSION ${VERSION_SHORT}) -find_package(Qt5 5.5 COMPONENTS Core Gui Widgets X11Extras REQUIRED) +find_package(Qt5 5.5 COMPONENTS Core Gui Widgets REQUIRED) +if (UNIX) + find_package(Qt5 5.5 COMPONENTS X11Extras REQUIRED) +endif() set(CMAKE_INCLUDE_CURRENT_DIR ON) if(BUILD_STATIC) set(CMAKE_STATIC_LIBRARY_SUFFIX "_static${CMAKE_STATIC_LIBRARY_SUFFIX}")