From: Kornel Benko Date: Wed, 10 Jun 2015 19:53:10 +0000 (+0200) Subject: Cmake build: Adapt to compile after 0213e7b5c62f487bdddd95ff0b2de736f64b1dc3 X-Git-Tag: 2.2.0alpha1~544 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=19c7902b53a911bb721bf56c38b6f39e6e7df156;p=features.git Cmake build: Adapt to compile after 0213e7b5c62f487bdddd95ff0b2de736f64b1dc3 --- diff --git a/src/graphics/CMakeLists.txt b/src/graphics/CMakeLists.txt index d0708bd309..c6e9d5870f 100644 --- a/src/graphics/CMakeLists.txt +++ b/src/graphics/CMakeLists.txt @@ -11,8 +11,9 @@ file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/${LYX_HPP_FILES}) 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}) if(NOT LYX_MERGE_FILES) add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers}) @@ -21,6 +22,7 @@ else() add_library(graphics ${library_type} ${_allinone_files}) endif() set_target_properties(graphics PROPERTIES FOLDER "applications/LyX") +qt_use_modules(graphics Core) lyx_add_gcc_pch(graphics) diff --git a/src/mathed/CMakeLists.txt b/src/mathed/CMakeLists.txt index 04c1a51939..d1ed1d661e 100644 --- a/src/mathed/CMakeLists.txt +++ b/src/mathed/CMakeLists.txt @@ -23,6 +23,7 @@ else() add_library(mathed ${library_type} ${_allinone_files}) endif() set_target_properties(mathed PROPERTIES FOLDER "applications/LyX") +qt_use_modules(mathed Core) lyx_add_gcc_pch(mathed)