]> git.lyx.org Git - features.git/commitdiff
Fix building with cmake and Qt4
authorEnrico Forestieri <forenr@lyx.org>
Wed, 10 Jun 2015 22:09:31 +0000 (00:09 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Wed, 10 Jun 2015 22:09:31 +0000 (00:09 +0200)
src/graphics/CMakeLists.txt
src/mathed/CMakeLists.txt

index c6e9d5870f66187957e8404da4f5af15994b6da3..a6fbffa23e85fede5dc65a00eb7300b91edec115 100644 (file)
@@ -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})
index d1ed1d661ee901263d1f8aa284f1aa3889b8c874..8d354f6a133e35ae3caf545868325f0b31186ad5 100644 (file)
@@ -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})