]> git.lyx.org Git - lyx.git/blob - src/graphics/CMakeLists.txt
Replace FileMonitor with FileMonitor2 in GraphicsCacheItem
[lyx.git] / src / graphics / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
5 #
6
7 project(graphics)
8
9 file(GLOB graphics_sources ${TOP_SRC_DIR}/src/graphics/${LYX_CPP_FILES})
10 file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/${LYX_HPP_FILES})
11
12 lyx_add_msvc_pch(graphics)
13
14 include_directories(${TOP_SRC_DIR}/src/graphics)
15 lyx_automoc(${TOP_SRC_DIR}/src/graphics/PreviewLoader.cpp)
16 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES})
17
18 if(NOT LYX_MERGE_FILES)
19         add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers})
20 else()
21         lyx_const_touched_files(_allinone  graphics_sources)
22         add_library(graphics ${library_type} ${_allinone_files})
23 endif()
24 set_target_properties(graphics PROPERTIES FOLDER "applications/LyX")
25 qt_use_modules(graphics Core)
26
27 lyx_add_gcc_pch(graphics)
28
29 project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)
30