From dd62e0594cf4e4b4f786ce42e1aded3d86894261 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 11 Jun 2015 00:09:31 +0200 Subject: [PATCH] Fix building with cmake and Qt4 --- src/graphics/CMakeLists.txt | 2 +- src/mathed/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphics/CMakeLists.txt b/src/graphics/CMakeLists.txt index c6e9d5870f..a6fbffa23e 100644 --- a/src/graphics/CMakeLists.txt +++ b/src/graphics/CMakeLists.txt @@ -13,7 +13,7 @@ lyx_add_msvc_pch(graphics) include_directories(${TOP_SRC_DIR}/src/graphics) lyx_automoc(${TOP_SRC_DIR}/src/graphics/PreviewLoader.cpp) -include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES}) if(NOT LYX_MERGE_FILES) add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers}) diff --git a/src/mathed/CMakeLists.txt b/src/mathed/CMakeLists.txt index d1ed1d661e..8d354f6a13 100644 --- a/src/mathed/CMakeLists.txt +++ b/src/mathed/CMakeLists.txt @@ -14,7 +14,7 @@ list(REMOVE_ITEM mathed_sources lyx_add_msvc_pch(mathed) -include_directories(${TOP_SRC_DIR}/src/mathed) +include_directories(${TOP_SRC_DIR}/src/mathed ${QT_INCLUDES}) if(NOT LYX_MERGE_FILES) add_library(mathed ${library_type} ${mathed_sources} ${mathed_headers}) -- 2.39.2