Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2017-08-03 17:02:09 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-08-03 17:14:33 +0300
commita02c0339b4a7c1658af44d193356d33455bde9dc (patch)
tree39511799c92d83b21da0f24b71ab8ada65fc83cd /CMakeLists.txt
parent0f63abb4d0ccba8d3366661fbb19e4840df16e4a (diff)
Fix build pymodules on Linuxpy-modules-0.2.3
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt15
1 files changed, 9 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4e61922cba..74563bf50a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,19 +125,22 @@ if (PYBINDINGS)
endif()
find_package(PythonLibs ${PYTHON_VERSION} REQUIRED)
include_directories(${PYTHON_INCLUDE_DIRS})
+ set(SKIP_DESKTOP ON)
endif()
-if (NOT PLATFORM_IPHONE AND NOT PLATFORM_ANDROID AND NOT PYBINDINGS)
+if (NOT PLATFORM_IPHONE AND NOT PLATFORM_ANDROID)
find_package(Qt5Core)
if (NOT Qt5Core_FOUND)
message(FATAL_ERROR "Qt5 cmake files were not found, please set QT_PATH environment variable")
endif()
find_package(Qt5Network REQUIRED)
- find_package(Qt5Gui REQUIRED)
- find_package(Qt5OpenGL REQUIRED)
- find_package(Qt5Widgets REQUIRED)
- find_package(Qt5Xml REQUIRED)
- find_package(Qt5Svg REQUIRED)
+ if(NOT SKIP_DESKTOP)
+ find_package(Qt5Gui REQUIRED)
+ find_package(Qt5OpenGL REQUIRED)
+ find_package(Qt5Widgets REQUIRED)
+ find_package(Qt5Xml REQUIRED)
+ find_package(Qt5Svg REQUIRED)
+ endif()
endif()
if (PLATFORM_LINUX)