]> git.lyx.org Git - features.git/commitdiff
Cmake build: Adapt to compile after 0213e7b5c62f487bdddd95ff0b2de736f64b1dc3
authorKornel Benko <kornel@lyx.org>
Wed, 10 Jun 2015 19:53:10 +0000 (21:53 +0200)
committerKornel Benko <kornel@lyx.org>
Wed, 10 Jun 2015 19:53:10 +0000 (21:53 +0200)
src/graphics/CMakeLists.txt
src/mathed/CMakeLists.txt

index d0708bd309ef1d95f7f57d2d42f02144816ebd7a..c6e9d5870f66187957e8404da4f5af15994b6da3 100644 (file)
@@ -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)
 
index 04c1a51939ec93f247122250a0be326ca1fe07b0..d1ed1d661ee901263d1f8aa284f1aa3889b8c874 100644 (file)
@@ -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)