From: Enrico Forestieri Date: Wed, 10 Jun 2015 22:09:31 +0000 (+0200) Subject: Fix building with cmake and Qt4 X-Git-Tag: 2.2.0alpha1~543 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dd62e0594cf4e4b4f786ce42e1aded3d86894261;p=features.git Fix building with cmake and Qt4 --- 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})