]> git.lyx.org Git - lyx.git/blob - src/graphics/CMakeLists.txt
Cmake build: Make PreviewLoader.cpp compilable again
[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
15 include_directories(${TOP_SRC_DIR}/src/graphics
16         ${QT_INCLUDES}
17 )
18
19 if(NOT LYX_MERGE_FILES)
20         add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers})
21 else()
22         lyx_const_touched_files(_allinone  graphics_sources)
23         add_library(graphics ${library_type} ${_allinone_files})
24 endif()
25
26 lyx_add_gcc_pch(graphics)
27
28 project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)
29