X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FCMakeLists.txt;h=a6fbffa23e85fede5dc65a00eb7300b91edec115;hb=c8230ab0d0a919530c43c29395f4d9961498bf15;hp=e2c0a9a5ea67a14f17e53fcb649bd9b5dc56b917;hpb=0a2c70636a49eb1b2457d29b05d9c4ee5bcc2843;p=lyx.git diff --git a/src/graphics/CMakeLists.txt b/src/graphics/CMakeLists.txt index e2c0a9a5ea..a6fbffa23e 100644 --- a/src/graphics/CMakeLists.txt +++ b/src/graphics/CMakeLists.txt @@ -11,10 +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 - ${QT_INCLUDES} -) +include_directories(${TOP_SRC_DIR}/src/graphics) +lyx_automoc(${TOP_SRC_DIR}/src/graphics/PreviewLoader.cpp) +include_directories(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES}) if(NOT LYX_MERGE_FILES) add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers}) @@ -22,6 +21,8 @@ else() lyx_const_touched_files(_allinone graphics_sources) 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)